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: 2.0.0.0 (2.0.0.0)
Syntax

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

Parameters

sourceData
Type: PrecisionImage SourceData
A SourceData type containing the image data.
channel
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.
Exceptions

Remarks

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.
Examples

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