CImage:FiltLine


The FiltLine method enhances features aligned parallel to a specified rotation angle.

Syntax

bResult = CImage:FiltLine( angle )

bullet.gif    angle is the rotation angle in degrees.

bullet.gif    On success, this method returns true.

bullet.gif    On failure, this method returns false.

Remarks

This method constructs a 3x3 linear feature mask using the specified rotation angle and applies it to the image. This is related to the directional gradient filter used in the FiltGradient method, but the current filter is 180 degree symmetric, giving equal results for features aligned at, say, 32 degrees and 212 degrees.

Example

Suppose an image is displayed in a CImageView named V. The following script applies a 32 degree linear feature operator to the displayed image:

I = V:GetImage()

-- attach the current displayed image

I:FiltLine( 32 )

-- apply the filter

V:Update()

-- update the display after the scale

Related Topics

CImage class, FiltGradient, FiltPrewitt


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