CImage:FiltSobel
The FiltSobel method applies a Sobel edge detection operator to the image. The mean level of the resulting image is 0.
bResult = CImage:FiltSobel() |
On success, this method returns true.
On failure, this method returns false.
This method creates an image containing a measure of edge strength. The pixel value contains the value of the local absolute gradient which is independent of both background level and slope. Depending upon whether the second derivative is positive or negative, the edge image may contain positive or negative values.
Suppose an image is displayed in a CImageView named V. The following script creates an edge strength map by applying the Sobel operator to the displayed image:
|
-- attach the current displayed image |
|
-- apply the filter |
|
-- update the display after the scale |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.