Image16Grey ClassCognex VisionPro 9.24

An object that describes a rectangular array of 16 bit grey scale pixels.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision Image16Grey

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public sealed class Image16Grey : ChangedEventShareableBase, 
	IImage, IChangedEvent, IObject, IImage16GreyData

The Image16Grey type exposes the following members.

Constructors

  NameDescription
Public methodImage16Grey 

Constructs a new, unallocated instance of this class.

Public methodImage16Grey(Int32, Int32)

Constructs a Image16Grey, allocating image memory with the given width and height.

Top
Methods

  NameDescription
Public methodAllocate

Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once.

Public methodCopy 

Create a copy of this image in a new image. While the pixels will be copied, the CoordinateSpaceTree and PixelFromRootTransform will be shared. Equivalent to calling Copy with copyMode as CopyPixels..

Public methodCopy(ImageCopyModeConstants)

Create a copy of this image in a new image. Pixels may be shared between images by specifying copyMode as SharePixels.

Public methodCopyBase

Create a copy of this image in a new image. Pixels may be shared between images by specifying copyMode as SharePixels.

Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGet16GreyPixelMemory

Gets an object that can be used to directly access pixel memory.

Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetPixel

Pixel value at given location.

Public methodGetRoot

Returns the root image object that contains the raw pixel data.

Public methodGetTransform

Returns a transformation that maps points from the 'From' coordinate space to the 'To' space.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent 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.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodSetPixel

Sets the value of the pixel at the given location.

Public methodSetRoot

Sets the root image object that contains the raw pixel data.

Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two Image16Grey objects.
Public operatorStatic memberInequality
Compares the inequality of two Image16Grey objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfCoordinateSpaceTree
Public fieldStatic memberSfEncoding
Public fieldStatic memberSfPixelFromRootTransform
Public fieldStatic memberSfSelectedSpaceName
Top
Properties

  NameDescription
Public propertyAllocated

Whether there is pixel data associated with this image.

Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyCoordinateSpaceTree
Get

Returns the tree of all named coordinate spaces for this image. The tree provides advanced functions for managing coordinate spaces.

Public propertyEncoding
Get

Cognex internal use only.

Public propertyHandle (Overrides ChangedEventShareableBase Handle.)
Public propertyHeight

Height of the image.

Public propertyPixelFromRootTransform
Get

Transformation that maps points into pixel space ("#") from the root space ("@").

Public propertySelectedSpaceName
Get

The name of the default coordinate space to be used by tools which process this image.

Public propertyWidth

Width of the image.

Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Top
See Also