Save the segmented image, before masking and morphology,
as part of the blob results. Otherwise, the image will be released
once blob analysis has completed and the CreateSegmentedImage method
will return Nothing when requesting this image.
Namespace: Cognex.VisionPro.BlobAssembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 69.0.0.0
public bool SaveSegmentedImageBeforeMasking { get; set; }public bool SaveSegmentedImageBeforeMasking { get; set; }Public Property SaveSegmentedImageBeforeMasking As Boolean
Get
Set
Public Property SaveSegmentedImageBeforeMasking As Boolean
Get
Set
public:
property bool SaveSegmentedImageBeforeMasking {
bool get ();
void set (bool value);
}public:
property bool SaveSegmentedImageBeforeMasking {
bool get ();
void set (bool value);
}Property Value
Type:
Boolean| Event Type | Reason |
|---|
| ICogChangedEvent Changed |
Fires when the value of this property changes.
The following state flag may be affected:
|
Save the segmented image, before masking and morphology, as part
of the blob results. Otherwise, the image will be released once
blob analysis has completed and the
CreateSegmentedImage(CogBlobSegmentedImageConstants, Boolean)
method will return Nothing when requesting this image.
Imports Cognex.VisionPro
Imports Cognex.VisionPro.Blob
Private Sub doBlob()
Dim myBlob As New CogBlob
Dim myBlobResults As CogBlobResults
Dim myImage As CogImage8Grey
myBlob.SaveSegmentedImageBeforeMasking = True
myBlobResults = myBlob.Execute(mobjImage, r)
myImage = myBlobResults.CreateSegmentedImage(CogBlobSegmentedImageConstants.BeforeMasking, True)
cdDisp.Image = myImage
End Sub
Imports Cognex.VisionPro
Imports Cognex.VisionPro.Blob
Private Sub doBlob()
Dim myBlob As New CogBlob
Dim myBlobResults As CogBlobResults
Dim myImage As CogImage8Grey
myBlob.SaveSegmentedImageBeforeMasking = True
myBlobResults = myBlob.Execute(mobjImage, r)
myImage = myBlobResults.CreateSegmentedImage(CogBlobSegmentedImageConstants.BeforeMasking, True)
cdDisp.Image = myImage
End Sub
using Cognex.VisionPro;
using Cognex.VisionPro.Blob;
private void doBlob()
{
CogBlob myBlob=new CogBlob();
CogBlobResults myBlobResults;
CogImage8Grey myImage;
myBlob.SaveSegmentedImageBeforeMasking = true;
myBlobResults = myBlob.Execute(mobjImage,r);
myImage = myBlobResults.CreateSegmentedImage(CogBlobSegmentedImageConstants.BeforeMasking, true);
cdDisp.Image = myImage;
}using Cognex.VisionPro;
using Cognex.VisionPro.Blob;
private void doBlob()
{
CogBlob myBlob=new CogBlob();
CogBlobResults myBlobResults;
CogImage8Grey myImage;
myBlob.SaveSegmentedImageBeforeMasking = true;
myBlobResults = myBlob.Execute(mobjImage,r);
myImage = myBlobResults.CreateSegmentedImage(CogBlobSegmentedImageConstants.BeforeMasking, true);
cdDisp.Image = myImage;
}