Image2DRGB (object)

The Image2DRGB is an Image2D storing RGB pixel values.

参考

Image2D

Image2DRGB Image2DRGB Image2DRGB Image2D Image2D Image2DRGB->Image2D StatisticSourceWithAutoRegisterMember StatisticSourceWithAutoRegisterMember Image2D->StatisticSourceWithAutoRegisterMember

Members

String name The name of the image.
Size width the width of the image
Size height the height of the image
UInt32 version the current version number of the image
UInt32 flags A set of binary flags for the image.
StatisticsAutoRegisterMember autoStats A statistics collection member used to track memory usage throughout an application.
RGB[] pixels  

Methods

  Image2DRGB ( in Image2DRGB other )
  Image2DRGB ()
Image2DRGB clone ? ()
StatisticRecord[] getStatistics ? ()
  resize ! ( in UInt32 width, in UInt32 height )
RGB sample ? ( in Scalar u, in Scalar v )
  setPixel ! ( in Integer uindex, in Integer vindex, in RGB pixelValue )

Methods in detail

Image2DRGB ( in Image2DRGB other )

copy constructor


Image2DRGB ()

Default constructor. Sets up the statistics register.


Image2DRGB Image2DRGB.clone? ()

clone method


StatisticRecord[] Image2DRGB.getStatistics? ()

Implementation of StatisticSource interface’s ‘getStatistics()’.


Image2DRGB.resize! ( in UInt32 width, in UInt32 height )

Resize the image allocating space for pixel storage.

width The new width of the image
height The new height of the image


RGB Image2DRGB.sample? ( in Scalar u, in Scalar v )

Samples the image pixels, returning a bi-linearly interpolated pixel value.

u The u param to sample the image. Should range between 0.0 and 1.0
v The v param to sample the image. Should range between 0.0 and 1.0


Image2DRGB.setPixel! ( in Integer uindex, in Integer vindex, in RGB pixelValue )

Sets a new pixel value

uindex the index of the pixel in u
vindex the index of the pixel in v
pixelValue the new value for the pixel