Image2DColor (object)¶
The Image2DRGB is an Image2D storing full float Color pixel values.
参考
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. |
Color[] | pixels |
Methods¶
Image2DColor ( in Image2DColor other ) | |
Image2DColor () | |
Image2DColor | clone ? () |
Color | getPixel ? ( in Integer uindex, in Integer vindex ) |
StatisticRecord[] | getStatistics ? () |
resize ! ( in UInt32 width, in UInt32 height ) | |
Color | sample ? ( in Scalar u, in Scalar v ) |
setPixel ! ( in Integer uindex, in Integer vindex, in Color pixelValue ) |
Methods in detail¶
Image2DColor ( in Image2DColor other )
copy constructor
Image2DColor ()
Default constructor. Sets up the statistics register.
Image2DColor Image2DColor.clone? ()
clone method
Color Image2DColor.getPixel? ( in Integer uindex, in Integer vindex )
Gets the value of the pixel at the given coordinates
uindex | the index of the pixel in u |
vindex | the index of the pixel in v |
StatisticRecord[] Image2DColor.getStatistics? ()
Implementation of StatisticSource interface’s ‘getStatistics()’.
Image2DColor.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 |
Color Image2DColor.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 |
Image2DColor.setPixel! ( in Integer uindex, in Integer vindex, in Color 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 |