CImage:FiltSharpen
The FiltSharpen method increases the crispness, or local contrast, of the image.
bResult = CImage:FiltSharpen( nOrder, CRect=nil ) |
This method increases the local contrast of the image by suppressing the diffuse component of the image. This has the effect of sharpening the image, making it "crisper" in appearance. The related FiltUnsharpMask method gives slightly less noise increase at the expense of slower performance compared with the present filter.
Suppose an image is displayed in a CImageView named V. The following script fragment applies a sharpening filter of order 3 (moderately strong) 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 |