ImageGear for .NET
EdgeDetection(ImGearRasterPage,ImGearEdgeDetectionMethods) Method
See Also  Example Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : EdgeDetection(ImGearRasterPage,ImGearEdgeDetectionMethods) Method




page
An ImageGear.Core.ImGearRasterPage class object on which the algorithm will be performed.
method
Type of edge detection method to perform.

Glossary Item Box

Performs the edge detection operation specified by the method argument.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
An ImageGear.Core.ImGearRasterPage class object on which the algorithm will be performed.
method
Type of edge detection method to perform.

Remarks

Method can be applied only to 8bit grayscale images with one channel.

Example

C#Copy Code
// Convert an image to grayscale and detect the edges in the image.
ImGearRasterProcessing.ConvertColorSpace(igRasterPage, new ImGearColorSpace(ImGearColorSpaceIDs.Gy));
ImGearEffects.EdgeDetection(igRasterPage, ImGearEdgeDetectionMethods.DIFF_RECURSIVE);
Visual BasicCopy Code
' Convert an image to grayscale and detect the edges in the image.
ImGearRasterProcessing.ConvertColorSpace(igRasterPage, New ImGearColorSpace(ImGearColorSpaceIDs.Gy))
ImGearEffects.EdgeDetection(igRasterPage, ImGearEdgeDetectionMethods.DIFF_RECURSIVE)

See Also

©2013. Accusoft Corporation. All Rights Reserved.