The minimum size, in pixels, of features that will not
be cleaned up during connectivity cleanup. ConnectivityCleanup is not
available when connectivity mode is set to whole image, in which case
the cleanup and minimum pixels settings are simply ignored.
Namespace: Cognex.VisionPro.BlobAssembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 73.0.0.0
Syntax
Property Value
Type: Int32The default is 10.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the value of this property changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The supplied value is less than zero. |
Remarks
Examples
Imports Cognex.VisionPro
Imports Cognex.VisionPro.Blob
myBlob = New CogBlob
myBlobResults = New CogBlobResults
Private Sub doBlob()
myBlob.ConnectivityCleanup = CogBlobConnectivityCleanupConstants.Prune
myBlob.ConnectivityMinPixels = 100
myBlob.ConnectivityMode = CogBlobConnectivityModeConstants.Labeled
myBlobResults = myBlob.Execute(anImage, Nothing)
debug.WriteLine("Count is:" + myBlobResults.GetBlobs.Count.ToString)
End Subusing Cognex.VisionPro; using Cognex.VisionPro.Blob; private CogBlob myBlob; private CogBlobResults myBlobResults; myBlob = new CogBlob(); myBlobResults = new CogBlobResults(); private void doBlob() { myBlob.ConnectivityCleanup = CogBlobConnectivityCleanupConstants.Prune; myBlob.ConnectivityMinPixels = 100; myBlob.ConnectivityMode = CogBlobConnectivityModeConstants.Labeled; myBlob.Execute(anImage, NULL); debug.WriteLine("Count is:" + myBlobResults.GetBlobs.Count.ToString); }
See Also