CImage:FiltRotGrad CImage:FiltSharpen

CImage:FiltSobel


The FiltSobel method applies a Sobel edge detection operator to the image. The mean level of the resulting image is 0.

Syntax

bResult = CImage:FiltSobel()

bullet.gif    On success, this method returns true.

bullet.gif    On failure, this method returns false.

Remarks

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.

Example

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:

I = V:GetImage()

-- attach the current displayed image

I:FiltSobel()

-- apply the filter

V:Update()

-- update the display after the scale

Related Topics

CImage class, FiltLaplacian


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.