Core Optical, Inc.
CannyEdgeDetector GetEdgeMask Method Industrial Strength, Scientific Grade
Applies the Canny edge detection algorithm to the input SourceData and returns the result as a BinaryMask object.

Namespace: PrecisionImage.FeatureProcessing
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public BinaryMask GetEdgeMask(
	SourceData sourceData,
	int channel,
	XYGradientEdgeDetector gradientOperator = null


Type: PrecisionImage SourceData
A SourceData type containing the image data.
Type: OnlineSystem Int32
An OnlineInt32 type indicating the data channel to process.
gradientOperator (Optional)
Type: PrecisionImage.FeatureProcessing XYGradientEdgeDetector
An object inheriting the XYGradientEdgeDetector type to use during gradient computation. This parameter is optional and defaults to ModifiedSobelEdgeDetector.

Return Value

A BinaryMask object with the detected edges unmasked and the rest of the image masked.


Use this method to apply the Canny edge detection algorithm to a data set and retrieve the result as binary data (in the form of a BinaryMask object with the edges masked and the rest of the image unmasked). If the inverse is desired call Invert  after retrieving the result.

For an example of the use of this method see CannyEdgeDetector.
See Also