RankFilter

Syntax

Document.RankFilter ( Radius, Weight )

Parameters

Short Radius - specifies the radius of the area within which pixels are ranked

Float Weight - specifies the degree to which a pixel's rank will be permitted to alter its value (0 to 100%)

Returns

Nothing

Remarks

Performs a rank filter, preferentially amplifying faint detail in the image. A raw rank filter replaces each pixel by its rank among the neighbouring pixels, scaled to the original range of the input data. This generally produces too extreme an effect, so the result is mixed with the original image in a weighted average according to Weight. The Radius parameter specifies the size of the neighbourhood, which is actually a square of side 2*Radius+1) centered on the pixel being ranked.

This method is equivalent to the Rank Filter command.