CogBlobResult ClassCognex VisionPro
Class for a single blob result. Provides information for an individual feature found during blob analysis. Features include both blobs and holes within blobs.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Blob CogBlobResult

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

[SerializableAttribute]
public class CogBlobResult : CogSerializableObjectBase, 
	IDisposable, ICloneable

The CogBlobResult type exposes the following members.

Constructors

  NameDescription
Public methodCogBlobResult 
For Cognex internal use only.
Public methodCogBlobResult(CogBlobResult)
Constructs a new instance of this class as a deep copy of the given instance.
Protected methodCogBlobResult(SerializationInfo, StreamingContext)
Serialization constructor for CogBlobResult 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 methodCreateResultGraphics
Creates a composite result graphic containing child graphics specified by the GraphicOptions which is a bitwise combination of CogBlobResultGraphicConstants.
Public methodDispose 
Destruct this CogBlobResult.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalize this CogBlobResult.
(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.)
Public methodGetBoundary
Creates a closed polygon representing the boundary of the blob which completely encloses all pixels that are part of this blob, regardless of the blob weight associated with each pixel. The boundary always falls directly between the edges of pixels.
Public methodGetBoundingBox
Gets a bounding box of the blob that is aligned with the specified axis. The exclude extrema properties of the run parameters are used when calculating the bounding box, except when Axis is set to CogBlobAxisConstants::PixelAlignedNoExclude.
Public methodGetBoundingBoxAtAngle
Gets a bounding box of the blob that is aligned with the specified angle. The exclude extrema properties of the run parameters are used when calculating the bounding box.
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.)
Public methodGetMeasure
Returns the value of the blob CogBlobMeasureConstants requested.
Public methodGetMedianX
The x-coordinate of the point through which two orthogonal lines each divide the blob's area in half. The orthogonal lines are aligned with the Axis specified. MedianX is specified in units of the input image's selected space.
Public methodGetMedianY
The y-coordinate of the point through which two orthogonal lines each divide the blob's area in half. The orthogonal lines are aligned with the Axis specified. MedianY is specified in units of the input image's selected space.
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.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAcircularity
The acircularity of this blob as defined by the formula: perimeter^2 / (4 x Π x Area). This measure is not available when using whole-image connectivity.
Public propertyAcircularityRms
The acircularity of this blob as defined by the normalized RMS deviation of the boundary point radius values from r0, where r0 is the square root of the blob's area divided by Π. This measure is not available when using whole-image connectivity.
Public propertyAngle
The angle of the principal axis of the blob, specified in units of the input image's selected space at run-time.
Public propertyArea
The area of the blob specified in units of the input image's selected space at run-time. The area measure takes into account the blob weight of each pixel. Weighting is accomplished by assigning values between 0 and 255 to each pixel, then normalizing the total of the values of the pixels that make up the blob using the ScalingValue.
Public propertyCenterOfMassX
The x-coordinate of the center of mass of the blob specified in units of the input image's selected space at run-time.
Public propertyCenterOfMassY
The y-coordinate of the center of mass of the blob specified in units of the input image's selected space at run-time.
Public propertyElongation
The ratio of InertiaMax to InertiaMin.
Public propertyFilteredOut
True if this blob was filtered out based on any of filter criteria specified in the RunTimeMeasures. False, otherwise.
Public propertyID
A unique ID used to identify this blob within the context of the CogBlobResults object that contains this result.
Public propertyInertiaMax
The blob's second moment of inertia about the second principal axis of the blob.
Public propertyInertiaMin
The blob's second moment of inertia about the principal axis of the blob.
Public propertyInertiaX
The second moment of inertia of the blob about an axis drawn through the blob's center of mass and parallel to the Y-axis of selected space of the input image.
Public propertyInertiaY
The second moment of inertia of the blob about an axis drawn through the blob's center of mass and parallel to the X-axis of selected space of the input image.
Public propertyLabel
The connectivity label. For grey scale connectivity, the label will be 1 for blobs and 0 for holes. For labeled connectivity, this is the blob's label.
Public propertyNotClipped
This measure will be 1.0 if the blob was not clipped during processing. It will be zero if the blob touches the edge of the region of interest, or the edge of the run-time image, or any Don't Care pixel in the InputImageMask.
Public propertyNumChildren
The number of children of this blob after all filter criteria are applied.
Public propertyNumUnfilteredChildren
The number of children of this blob before any filter criteria are applied.
Public propertyPerimeter
The perimeter of the blob specified in units of the input image's selected space at run-time. Formula corrects for the tendency of the pixel aligned boundary of the blob to overstate the true blob perimeter. Not available for whole-image connectivity.
Public propertySelectedSpaceName
Returns the name of the selected space of the input image at run-time. All relevant blob measures are specified in units of the selected space.
Top
See Also