CogShapePolarize ClassCognex VisionPro
The shape polarization operator is used to determine polarity information along a shape based on image data. Polarity information indicates which side of the shape boundary is dark and which side is light.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogShapePolarize

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

[SerializableAttribute]
public class CogShapePolarize : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent

The CogShapePolarize type exposes the following members.

Constructors

  NameDescription
Public methodCogShapePolarize 
Constructs a new instance of this class.
Public methodCogShapePolarize(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogShapePolarize(CogShapePolarize)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Protected 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. See also CogSerializer.DeepCopyObject
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 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Execute will determine the polarity information along the provided shape based on data extracted from the input image. Polarity information indicates which side of the shape boundary is dark and which side is light.
Protected methodFinalize (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
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 methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also 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.
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.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfCombineMode
This bit will be set in the EventArgs of a Changed event every time the value returned by CombineMode may have changed.
Public fieldStatic memberSfContrastThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by ContrastThreshold may have changed.
Public fieldStatic memberSfMaintainShapeIntegrity
This bit will be set in the EventArgs of a Changed event every time the value returned by MaintainShapeIntegrity may have changed.
Public fieldStatic memberSfMinPolarityPerimeter
This bit will be set in the EventArgs of a Changed event every time the value returned by MinPolarityPerimeter may have changed.
Public fieldStatic memberSfProbeOffsetInPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by ProbeOffsetInPixels may have changed.
Public fieldStatic memberSfProbeResolution
This bit will be set in the EventArgs of a Changed event every time the value returned by ProbeResolution 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.
Public propertyCombineMode
Indicates the mode that the shape polarization operator will use for combining the original shape polarities with the polarities derived from the image.
Public propertyContrastThreshold
The minimum absolute contrast difference between a polarity sample point's probes that is required to make a polarity determination. If the difference is less than the threshold then the polarity sample point is assigned an undefined polarity.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyMaintainShapeIntegrity
If true then the shape will not be broken up into sections due to differing polarities along the shape's boundary. In this case, the MinPolarityPerimeter property is ignored. A primitive shape that is broken up into sections will become a contour.
Public propertyMinPolarityPerimeter
The minimum length a constant-polarity section of the shape must have in order to be preserved. Sections that are shorter than this length will be combined with neighboring sections and the polarity will be set based on polarity of its neighbors.
Public propertyProbeOffsetInPixels
The probe offset specifies the distance from the shape to each of the two points where the image intensity is sampled. This parameter is specified in image pixel units.
Public propertyProbeResolution
The probe resolution specifies the maximum arc length, in shape selected space units, between adjacent polarity sample points along the original shape. Some portions of the shape may be sampled more densely than the specified probe resolution.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

The shape polarization operator is used to determine polarity information along a shape based on image data. Polarity information indicates which side of the shape boundary is dark and which side is light.

See Also