CogBlobResults CreateSegmentedImage Method (CogBlobSegmentedImageConstants, Boolean)Cognex VisionPro 9.23
Gets the specified segmented image. The image will be stretched for maximum viewing contrast if stretchIt is true, otherwise, the image will contain the actual segmented image data.

Namespace: Cognex.VisionPro.Blob
Assembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 91.0.0.0
Syntax

public CogImage8Grey CreateSegmentedImage(
	CogBlobSegmentedImageConstants whichImage,
	bool stretchIt
)

Parameters

whichImage
Type: Cognex.VisionPro.Blob CogBlobSegmentedImageConstants
stretchIt
Type: System Boolean

Return Value

Type: CogImage8Grey
The returned CogImage8Grey.
Exceptions

ExceptionCondition
ArgumentExceptionwhichImage is not a member of CogBlobSegmentedImageConstants
InvalidOperationException If no result data is available.
Remarks

Gets a CogImage8Grey containing the segmented image.

You must set SaveSegmentedImage, SaveSegmentedImageBeforeMasking, or SaveSegmentedImageBeforeMorphology to True or CreateSegmentedImage(CogBlobSegmentedImageConstants, Boolean) will return Nothing for the corresponding image.

See Also