CImage:FiltPrewitt
The FiltPrewitt method applies a Prewitt directional gradient mask to an image. Masks are available in 45 degree rotation steps.
bResult = CImage:FiltPrewitt( step ) |
This method applies a Prewitt mask to the entire image to enhance gradient structures aligned in 45 degree increments. In comparison, the FiltGradient filter can be rotated to any angle but is slower in performance.
Suppose an image is displayed in a CImageView named V. The following script fragment applies a step 4 Prewitt mask (135 degree angle) to the displayed image:
|
-- attach the current displayed image |
|
-- apply the filter |
|
-- update the display after the scale |