CogBlobSegmentationParams ClassCognex VisionPro
Class which holds image segmentation parameters. Blob analysis provides numerous methods of segmenting an image into object and background pixels. The primary interface of this class allows the user to select and configure the method of segmentation.
Inheritance Hierarchy

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

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

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

The CogBlobSegmentationParams type exposes the following members.

Constructors

  NameDescription
Public methodCogBlobSegmentationParams 
Constructs a new instance of this class.
Public methodCogBlobSegmentationParams(CogBlobSegmentationParams)
Constructs a new instance of this class as a deep copy of the given instance.
Protected methodCogBlobSegmentationParams(SerializationInfo, StreamingContext)
Serialization constructor for CogBlobSegmentationParams 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 CogBlobSegmentationParams.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalize this CogBlobSegmentationParams.
(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.)
Public methodGetMap
Pixel map that is to be applied to the InputImage when using the Map segmentation mode. Each pixel in the input image is replaced by the value within the pixel map at the index equal to the input image pixel value.
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Public methodGetPostMap
Pixel map that is to be applied to the image that resulted from subtracting the SubtractionImage from the InputImage. The value resulting from the subtraction is used as an index into PostMap and is replaced with the value at that index in PostMap.
Public methodGetPreMap
Pixel map that is to be applied to the InputImage when using subtraction image as the segmentation mode. Each pixel in the InputImage is used as an index into PreMap. The input pixel value is replaced with the value from PreMap.
Public methodGetPreMap16
Pixel map that is to be applied to the 16 bit InputImage when using subtraction image as the segmentation mode. Each pixel in the InputImage is used as an index into PreMap16. The input pixel value is replaced with the value from PreMap16.
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 methodSetMap
Pixel map that is to be applied to the InputImage when using the Map segmentation mode. Each pixel in the input image is replaced by the value within the pixel map at the index equal to the input image pixel value.
Public methodSetPostMap
Pixel map that is to be applied to the image that resulted from subtracting the SubtractionImage from the InputImage. The value resulting from the subtraction is used as an index into PostMap and is replaced with the value at that index in PostMap.
Public methodSetPreMap
Pixel map that is to be applied to the InputImage when using subtraction image as the segmentation mode. Each pixel in the InputImage is used as an index into PreMap. The input pixel value is replaced with the value from PreMap.
Public methodSetPreMap16
Pixel map that is to be applied to the 16 bit InputImage when using subtraction image as the segmentation mode. Each pixel in the InputImage is used as an index into PreMap16. The input pixel value is replaced with the value from PreMap16.
Public methodSetSegmentationHardDynamicThreshold
Sets the segmentation Mode to HardDynamicThreshold and sets the TailLow, TailHigh, and Polarity properties to the values supplied.
Public methodSetSegmentationHardFixedThreshold
Sets the segmentation Mode to HardFixedThreshold and sets the HardFixedThreshold & Polarity properties to the values supplied.
Public methodSetSegmentationHardRelativeThreshold
Sets the segmentation Mode to HardRelativeThreshold and sets the TailLow, TailHigh, HardRelativeThreshold, & Polarity properties to the values supplied.
Public methodSetSegmentationMap
Sets the segmentation Mode to Map and sets the Map & ScalingValue properties to the values supplied.
Public methodSetSegmentationNone
Sets the segmentation Mode to None and sets the ScalingValue property to the value supplied.
Public methodSetSegmentationSoftFixedThreshold
Sets the segmentation Mode to SoftFixedThreshold and sets the SoftRelativeThresholdLow, SoftRelativeThresholdHigh, Softness, & Polarity properties to the values supplied.
Public methodSetSegmentationSoftRelativeThreshold
Sets the segmentation Mode to SoftRelativeThreshold and sets the TailLow, TailHigh, SoftRelativeThresholdLow, SoftRelativeThresholdHigh, Softness, & Polarity properties to the values supplied.
Public methodSetSegmentationSubtractionImage( Byte , CogImage8Grey,  Byte , Int32, Int32, Int32)
Sets the segmentation Mode to SubtractionImage and sets the PreMap, SubtractionImage, PostMap, ScalingValue, SubtractionImageOffsetX, & SubtractionImageOffsetY properties to the values supplied.
Public methodSetSegmentationSubtractionImage( UInt16 , CogImage16Grey,  Byte , Int32, Int32, Int32)
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 memberSfGetMap
This bit will be set in the EventArgs of a Changed event every time the value returned by GetMap may have changed.
Public fieldStatic memberSfGetPostMap
This bit will be set in the EventArgs of a Changed event every time the value returned by GetPostMap may have changed.
Public fieldStatic memberSfGetPreMap
This bit will be set in the EventArgs of a Changed event every time the value returned by GetPreMap may have changed.
Public fieldStatic memberSfGetPreMap16
This bit will be set in the EventArgs of a Changed event every time the value returned by GetPreMap16 may have changed.
Public fieldStatic memberSfHardFixedThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by HardFixedThreshold may have changed.
Public fieldStatic memberSfHardRelativeThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by HardRelativeThreshold may have changed.
Public fieldStatic memberSfMode
This bit will be set in the EventArgs of a Changed event every time the value returned by Mode may have changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfPolarity
This bit will be set in the EventArgs of a Changed event every time the value returned by Polarity may have changed.
Public fieldStatic memberSfScalingValue
This bit will be set in the EventArgs of a Changed event every time the value returned by ScalingValue may have changed.
Public fieldStatic memberSfSoftFixedThresholdHigh
This bit will be set in the EventArgs of a Changed event every time the value returned by SoftFixedThresholdHigh may have changed.
Public fieldStatic memberSfSoftFixedThresholdLow
This bit will be set in the EventArgs of a Changed event every time the value returned by SoftFixedThresholdLow may have changed.
Public fieldStatic memberSfSoftness
This bit will be set in the EventArgs of a Changed event every time the value returned by Softness may have changed.
Public fieldStatic memberSfSoftRelativeThresholdHigh
This bit will be set in the EventArgs of a Changed event every time the value returned by SoftRelativeThresholdHigh may have changed.
Public fieldStatic memberSfSoftRelativeThresholdLow
This bit will be set in the EventArgs of a Changed event every time the value returned by SoftRelativeThresholdLow may have changed.
Public fieldStatic memberSfSubtractionImage
This bit will be set in the EventArgs of a Changed event every time the value returned by SubtractionImage may have changed.
Public fieldStatic memberSfSubtractionImageOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by SubtractionImageOffsetX may have changed.
Public fieldStatic memberSfSubtractionImageOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by SubtractionImageOffsetY may have changed.
Public fieldStatic memberSfTailHigh
This bit will be set in the EventArgs of a Changed event every time the value returned by TailHigh may have changed.
Public fieldStatic memberSfTailLow
This bit will be set in the EventArgs of a Changed event every time the value returned by TailLow 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 propertyHardFixedThreshold
If Polarity is light blobs then pixels values that are greater than or equal to this threshold are part of the blob(s); pixel values that are less than this threshold are part of the background. If polarity is dark blobs then the ranges are inverted.
Public propertyHardRelativeThreshold
A fixed threshold is computed by determining the pixel value which lies at the specified percentage of the distance between the low tail pixel value and the high tail pixel value. This computed threshold is then used to perform Hard-Fixed segmentation.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyMode
The method used to segment an input image into pixels that make up the blob(s) and pixels that are part of the background.
Public propertyPolarity
Blob polarity used for image segmentation with either soft or hard thresholding. Indicates either dark blobs on a light background or light blobs on a dark background.
Public propertyScalingValue
Pixel value that represents a blob weight of 1.0, all other pixel values are interpreted on a linear scale relative to ScalingValue.
Public propertySoftFixedThresholdHigh
Pixel values above(>=) the high threshold are background (weight 0) or full-weight blob (weight 1) depending on the Polarity. Values between the low and high thresholds are considered fractional blob (weight between 0 and 1, exclusive). See Softness.
Public propertySoftFixedThresholdLow
Pixel values below the low threshold are background (weight 0) or full-weight blob (weight 1.0) depending on the Polarity. Values between the low and high thresholds are considered fractional blob (weight between 0 and 1, exclusive). See Softness.
Public propertySoftness
The maximum number of fractional weights between background pixels (whose weight is 0.0) and full-weight blob pixels (whose weight is 1.0). The fractional weights are represented in the segmentation image by pixel values between 1 and softness.
Public propertySoftRelativeThresholdHigh
This relative threshold specifies a percentage of the distance between the low and high tail grey scale pixel values. The grey scale pixel value determined by this relative percentage is then used as a soft, fixed threshold.
Public propertySoftRelativeThresholdLow
This relative threshold specifies a percentage of the distance between the low and high tail grey scale pixel values. The grey scale pixel value determined by this relative percentage is then used as a soft, fixed threshold.
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.)
Public propertySubtractionImage
The subtraction image used when the segmentation mode is SubtractionImage. The SubtractionImageOffsetX & SubtractionImageOffsetY specify the pixel alignment of this image with the blob analysis InputImage.
Public propertySubtractionImageOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the run-time input image to the upper-left corner of the SubtractionImage in image coordinates of the input image.
Public propertySubtractionImageOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the run-time input image to the upper-left corner of the SubtractionImage in image coordinates of the input image.
Public propertyTailHigh
The percentage of high tail pixels to discard before computing either a hard relative, hard dynamic, or soft relative threshold.
Public propertyTailLow
The percentage of low tail pixels to discard before computing either a hard relative, hard dynamic, or soft relative threshold.
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
Remarks

Blob analysis provides numerous methods of segmenting an image into object pixels and background pixels. This interface lets you control exactly how the image is segmented.
See Also