CImage:FiltMin
The FiltMin method applies a 0-th percentile rank selection filter to the image. This filter replaces each pixel with its neighborhood minimum value.
bResult = CImage:FiltMin( cols, rows, CRect=nil ) |
This method selects the neighborhood values having 0% rank surrounding each point of interest. This produces an image that maximally emphasizes all the local "holes" in the image.
Suppose an image is displayed in a CImageView named V. The following script fragment applies a 7 x 7 minimum value filter to the [100:300, 400:800] pixel region:
|
-- attach the current displayed image |
|
-- setup the rectangle to process |
|
-- apply the filter |
|
-- update the display after the scale |
|
-- done with the CRect |