CogIPOneImagePelSet ClassCognex VisionPro 9.22 SR1
Class that performs the Pixel Set processing on an image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.ImageProcessing CogIPOneImagePelSet

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 87.1.0.0
Syntax

[SerializableAttribute]
public class CogIPOneImagePelSet : CogObjectBase, 
	ICogNetInternal, IDisposable, ICogIPOneImageOperator, ICogIPOneImageOperatorParams, ICloneable, 
	ISerializable, ICogHasChanged, ICogChangedEvent

The CogIPOneImagePelSet type exposes the following members.

Constructors

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

  NameDescription
Protected methodattachCom
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
Perform a single image operation using the input image and region to produce the output image.
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
Protected field__com
Protected field__disposed
Protected fieldStatic member__factory
Protected fieldStatic memberCreator
Public fieldStatic memberSfEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by Enabled may have changed.
Public fieldStatic memberSfInputImageMask
This bit wil be set in the EventArgs of a Changed event every time the value returned by InputImageMask may have changed.
Public fieldStatic memberSfInputImageMaskOffsetX
This bit wil be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetX may have changed.
Public fieldStatic memberSfInputImageMaskOffsetY
This bit wil be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetY may have changed.
Public fieldStatic memberSfOperation
This bit will be set in the EventArgs of a Changed event every time the value returned by Operation may have changed.
Public fieldStatic memberSfOperatorName
This bit will be set in the EventArgs of a Changed event every time the value returned by OperatorName may have changed.
Public fieldStatic memberSfPelValue
This bit will be set in the EventArgs of a Changed event every time the value returned by PelValue 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 propertyEnabled
Whether this one image operator will be used to compute the output image.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyInputImageMask
Mask indicating areas of Care (255) and Don't Care (Zero). The mask is aligned to the InputImage using the InputImageMaskOffsetX & Y values. It is an undefined behavior if the mask pixels are not 0 or 255.
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 pixel 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 pixel coordinates of the InputImage.
Public propertyOperation
Get or set the operation to be performed at runtime. Possible choices include: set the care pels, or set the don't care pels.
Public propertyOperatorName
Returns/sets a displayable operator name.
Public propertyPelValue
Get or set the value used at runtime. Depending on the operation, the value is applied to care pels or don't care pels. This value is validated at runtime for the image type used. For CogImage8Grey the value cannot exceed 255.
Top
Events

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

The input image pixels and the output image pixels are classified as care-pixels and don't-care pixels as follows:
  • First start with the full image as care-pixels
  • Next write-in the don't care pixel from the user specified mask
  • Next If the region mode is set to Pixel Aligned Bounding Box Adjust Mask, write-in the don't care pixels found outside the region but within the bounding box of the region,

Now all input image pixels have been classified, the output image will be limited to the bounding box of the region - only pixels within the bounding box of the region will be operated on.

The execute method will either write the care-pixels or the don't-care pixels based on the Opertion selected by the user.

See Also