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 ) |
x, y is the coordinate at the center of rotation.
nShift is the pixel displacement of the rotated image from the original image.
ShiftAngle is the direction of the shift, in degrees.
DitherAngle is the angle used to create the rotational gradient, typically 5 to 10 degrees.
On success, this method returns true.
On failure, this method returns false.
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 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 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.