Object that describes a rectangular array of 8 bit grey scale pixels.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro CogImage8Grey
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.0.0.0
Syntax
The CogImage8Grey type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogImage8Grey | Constructs a new instance of this class. | |
| CogImage8Grey(Bitmap) | Constructs a CogImage8Grey, copying or computing the pixels from the given bitmap. | |
| CogImage8Grey(IntPtr) | Constructs a new instance of this class using com pointer. | |
| CogImage8Grey(CogImage8Grey) | Constructs a new instance of this class as a deep copy of the given instance. | |
| CogImage8Grey(Int32, Int32) | Constructs a CogImage8Grey, allocating image memory with the given width and height. |
Methods
| Name | Description | |
|---|---|---|
| Allocate | Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once. | |
| Clone | 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 | |
| Copy | Create a copy of this image in a new image. While the pixels will be copied, the CoordinateSpaceTree and PixelFromRootTransform will be shared. | |
| Copy(CogImageCopyModeConstants) | Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels. | |
| CopyBase | Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels. | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Dispose | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides Object Finalize .) | |
| Get8GreyPixelMemory | Gets an object that can be used to directly access pixel memory. The caller MUST call Dispose on this object when finished with it. | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData | ||
| GetPixel | Pixel value at given location. | |
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetRoot | Returns the root image object that contains the raw pixel data. | |
| GetTransform | Returns a transform that maps points from the 'From' coordinate space to the 'To' space. The special string "." is accepted as an alias for the SelectedSpaceName of this image. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| ResumeAndRaiseChangedEvent | 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. | |
| ScaleImage | Creates a scaled version of this image. The dimensions of the returned image (in pixels) are specified by the width and height arguments. The scaling is performed using bilinear interpolation. | |
| SetPixel | Pixel value at given location. | |
| SetRoot | Sets the root image object that contains the raw pixel data. | |
| SuspendChangedEvent | 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. | |
| ToBitmap | Creates a 24-bit RGB Windows bitmap from this image. | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| SfCoordinateSpaceTree | This bit will be set in the EventArgs of a Changed event every time the value returned by CoordinateSpaceTree may have changed. | |
| SfPixelFromRootTransform | This bit will be set in the EventArgs of a Changed event every time the value returned by PixelFromRootTransform may have changed. | |
| SfSelectedSpaceName | This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedSpaceName may have changed. |
Properties
| Name | Description | |
|---|---|---|
| Allocated | Whether there is pixel data associated with this image. | |
| ChangedEventSuspended | 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. | |
| CoordinateSpaceTree | Returns/sets the tree of all named coordinate spaces for this image. The tree provides advanced functions for managing coordinate spaces. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| Height | Height of the image. | |
| PixelFromRootTransform | Transformation that maps points into pixel space ("#") from the root space ("@"). | |
| SelectedSpaceName | Returns/sets the name of the coordinate space to be used by tools which process this image. | |
| Width | Width of the image. |
Events
| Name | Description | |
|---|---|---|
| Changed | Occurs when one or more parts of the object's state may have changed. |
Remarks
Interface that describes a rectangular array of 8 bit grey scale pixels.
See Also