Image2DScalar (object)¶
The Image2DScalar is an Image2D storing Scalar 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. |
| Scalar[] | pixels |
Methods¶
| Image2DScalar ( in Image2DScalar other ) | |
| Image2DScalar () | |
| Image2DScalar | clone ? () |
| StatisticRecord[] | getStatistics ? () |
| resize ! ( in UInt32 width, in UInt32 height ) | |
| Scalar | sample ? ( in Scalar u, in Scalar v ) |
| setPixel ! ( in Integer uindex, in Integer vindex, in Scalar pixelValue ) |
Methods in detail¶
Image2DScalar ( in Image2DScalar other )
copy constructor
Default constructor. Sets up the statistics register.
Image2DScalar Image2DScalar.clone? ()
clone method
StatisticRecord[] Image2DScalar.getStatistics? ()
Implementation of StatisticSource interface’s ‘getStatistics()’.
Image2DScalar.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 |
Scalar Image2DScalar.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 |
Image2DScalar.setPixel! ( in Integer uindex, in Integer vindex, in Scalar 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 |