CogBlob ClassCognex VisionPro
Class for configuring and performing blob analysis. The blob run-time parameters include, but are not limited to, settings for segmentation, connectivity, morphology, masking, filtering, and sorting.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.Blob CogBlob

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

[SerializableAttribute]
public class CogBlob : CogSerializableChangedEventBase, IDisposable, 
	ICloneable

The CogBlob type exposes the following members.

Constructors

  NameDescription
Public methodCogBlob 
Constructs a new instance of this class.
Public methodCogBlob(CogBlob)
Constructs a new instance of this class as a deep copy of the given instance.
Protected methodCogBlob(SerializationInfo, StreamingContext)
Serialization constructor for CogBlob object.
Top
Methods

  NameDescription
Public methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method. Other clients who wish to clone this instance should call ICloneable::Clone.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Destruct this CogBlob.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Performs blob analysis on the provided InputImage and optional Region, creating a CogBlobResults object which provides the results of the analysis. If Region is nothing then blob analysis will be performed on the entire InputImage.
Protected methodFinalize
Finalize this CogBlob.
(Overrides Object Finalize .)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfComputeBlobRLE
This bit will be set in the EventArgs of a Changed event every time the value returned by ComputeBlobRLE may have changed.
Public fieldStatic memberSfComputeInertia
This bit will be set in the EventArgs of a Changed event every time the value returned by ComputeInertia may have changed.
Public fieldStatic memberSfComputeTopology
This bit will be set in the EventArgs of a Changed event every time the value returned by ComputeTopology may have changed.
Public fieldStatic memberSfConnectivityCleanup
This bit will be set in the EventArgs of a Changed event every time the value returned by ConnectivityCleanup may have changed.
Public fieldStatic memberSfConnectivityMinPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by ConnectivityMinPixels may have changed.
Public fieldStatic memberSfConnectivityMode
This bit will be set in the EventArgs of a Changed event every time the value returned by ConnectivityMode may have changed.
Public fieldStatic memberSfExtremaAngle
This bit will be set in the EventArgs of a Changed event every time the value returned by ExtremaAngle may have changed.
Public fieldStatic memberSfExtremaExcludeArea
This bit will be set in the EventArgs of a Changed event every time the value returned by ExtremaExcludeArea may have changed.
Public fieldStatic memberSfExtremaExcludeAreaPercent
This bit will be set in the EventArgs of a Changed event every time the value returned by ExtremaExcludeAreaPercent may have changed.
Public fieldStatic memberSfExtremaExcludeAreaPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by ExtremaExcludeAreaPixels may have changed.
Public fieldStatic memberSfExtremaExcludeMode
This bit will be set in the EventArgs of a Changed event every time the value returned by ExtremaExcludeMode may have changed.
Public fieldStatic memberSfInputImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMask may have changed.
Public fieldStatic memberSfInputImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetX may have changed.
Public fieldStatic memberSfInputImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetY may have changed.
Public fieldStatic memberSfMorphologyOperations
This bit will be set in the EventArgs of a Changed event every time the value returned by MorphologyOperations may have changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfRegionMode
This bit will be set in the EventArgs of a Changed event every time the value returned by RegionMode may have changed.
Public fieldStatic memberSfRunTimeMeasures
This bit will be set in the EventArgs of a Changed event every time the value returned by RunTimeMeasures may have changed.
Public fieldStatic memberSfSaveSegmentedImage
This bit will be set in the EventArgs of a Changed event every time the value returned by SaveSegmentedImage may have changed.
Public fieldStatic memberSfSaveSegmentedImageBeforeMasking
This bit will be set in the EventArgs of a Changed event every time the value returned by SaveSegmentedImageBeforeMasking may have changed.
Public fieldStatic memberSfSaveSegmentedImageBeforeMorphology
This bit will be set in the EventArgs of a Changed event every time the value returned by SaveSegmentedImageBeforeMorphology may have changed.
Public fieldStatic memberSfSegmentationParams
This bit will be set in the EventArgs of a Changed event every time the value returned by SegmentationParams may have changed.
Public fieldStatic memberSfSortAscending
This bit will be set in the EventArgs of a Changed event every time the value returned by SortAscending may have changed.
Public fieldStatic memberSfSortEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by SortEnabled may have changed.
Public fieldStatic memberSfSortMeasure
This bit will be set in the EventArgs of a Changed event every time the value returned by SortMeasure may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyComputeBlobRLE
If false then improve blob processing speed by not saving the run lengths of regions. This will make blob boundaries, blob perimeters, and blob images unavailable.
Public propertyComputeInertia
If false then improve blob processing speed by not computing the inertia, principal inertia, angle, and elongation.
Public propertyComputeTopology
If false then improve blob processing speed by not computing the parent - child relationships between regions.
Public propertyConnectivityCleanup
Determines the cleanup method to use after performing connectivity analysis of the blobs. ConnectivityCleanup is not available when connectivity mode is set to whole image, in which case the cleanup and minimum pixels settings are simply ignored.
Public propertyConnectivityMinPixels
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.
Public propertyConnectivityMode
Determines the connectivity to be used when analyzing blobs.
Public propertyExtremaAngle
The angle (in radians) at which the bounding box or median point is computed when the axis argument of MedianX, MedianY, or GetBoundingBox is ExtremaAngle. The extrema angle is specified in the selected space of the input image.
Public propertyExtremaExcludeArea
The amount of area to exclude when computing either a bounding box or median point, only used when the ExtremaExcludeMode is set to Area. The area is specified in units of the selected space of the InputImage.
Public propertyExtremaExcludeAreaPercent
The amount of area to exclude when computing either a bounding box or median point, only used when the ExtremaExcludeMode is set to AreaPercent. The area is specified in terms of percentage of pixels to exclude.
Public propertyExtremaExcludeAreaPixels
The amount of area to exclude when computing either a bounding box or median point, only used when the ExtremaExcludeMode is set to AreaPixels. The area is specified in image pixel units.
Public propertyExtremaExcludeMode
Indicates if some of the feature's area should be excluded when making the median and bounding box measures. If area should be excluded, the mode also indicates which property specifies the area to be excluded.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyInputImageMask
Mask indicating areas of Care (Non-Zero Mask Pixels) and Don't Care (Zero). Don't Care areas are treated as background/holes when performing grey scale connectivity. The mask is aligned to the InputImage using the InputImageMaskOffsetX & Y values.
Public propertyInputImageMaskOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the InputImage to the upper-left corner of the InputImageMask, in image coordinates of the InputImage.
Public propertyInputImageMaskOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the InputImage to the upper-left corner of the InputImageMask, in image coordinates of the InputImage.
Public propertyMorphologyOperations
A collection of CogBlobMorphologyConstants indicating which morphology operations are to be performed on the segmented image. The operations are performed in the order in which they are added to the collection. Operations can be added multiple times.
Public propertyRegionMode
Specifies whether blob analysis will be performed strictly within the confines of the region specified or whether blob analysis will be performed within the image aligned bounding box of the region.
Public propertyRunTimeMeasures
A collection indicating how the specified measures will be used during execution of blob analysis. Blob measures can either be used as filter criteria or precomputed such that the time required to calculate the measure is part of the blob execution time.
Public propertySaveSegmentedImage
Save the segmented image 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.
Public propertySaveSegmentedImageBeforeMasking
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.
Public propertySaveSegmentedImageBeforeMorphology
Save the segmented image, after masking but before 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.
Public propertySegmentationParams
Interface which allows the user to select and configure the desired method of image segmentation.
Public propertySortAscending
A value of True will sort the blobs in ascending order. SortAscending is only used if SortEnabled is true.
Public propertySortEnabled
Enables the sorting of the filtered collection of blobs. The SortMeasure and SortAscending properties indicate how the blobs will be sorted.
Public propertySortMeasure
The blob measure that will be used for sorting the filtered collection of blobs. SortMeasure is only used if SortEnabled is true.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Top
See Also