ImageGear .NET v25.0 - Updated
EdgeDetection(ImGearRasterPage,ImGearEdgeDetectionMethods) Method
Example 




ImageGear.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : EdgeDetection(ImGearRasterPage,ImGearEdgeDetectionMethods) Method
An ImageGear.Core.ImGearRasterPage class object on which the algorithm will be performed.
Type of edge detection method to perform.
Performs the edge detection operation specified by the method argument.
Syntax
'Declaration
 
Public Shared Sub EdgeDetection( _
   ByVal page As ImGearRasterPage, _
   ByVal method As ImGearEdgeDetectionMethods _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim method As ImGearEdgeDetectionMethods
 
ImGearEffects.EdgeDetection(page, method)
public static void EdgeDetection( 
   ImGearRasterPage page,
   ImGearEdgeDetectionMethods method
)
public: static void EdgeDetection( 
   ImGearRasterPage* page,
   ImGearEdgeDetectionMethods method
) 
public:
static void EdgeDetection( 
   ImGearRasterPage^ page,
   ImGearEdgeDetectionMethods method
) 

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
// 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);
' 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

Reference

ImGearEffects Class
ImGearEffects Members
ImGearEdgeDetectionMethods Enumeration
ImGearRasterPage Class