CImage:FiltRotGrad
The FiltRotGrad method computes a special kind or gradient which enhances features emanating from a point.
bResult = CImage:FiltRotGrad( x, y, nShift, ShiftAngle, DitherAngle ) |
This filter uses a combination of rotational jogging and positional jogging (the "dither") to enhance features that radiate from a point, or radiate but are biased along a favored direction (the "shift"). This enhances features akin to the spokes of a wheel which may be difficult to see in the original image. This method is a rotational equivalent of a linear gradient filter like the FiltGradient method.
Suppose an image is displayed in a CImageView named V. The following script fragment applies a rotational gradient filter at point 235.2,90.5 using a shift of 2 pixels along a 34 degree vector and using +-5 degree dithering to create the rotational gradient.
|
-- attach the current displayed image |
|
-- center of rotation |
|
-- apply the filter |
|
-- update the display after the scale |