#include <image.h>
Public Types | |
|
typedef ImageFormatTraits < FORMAT >::PixelType | PixelType |
Public Member Functions | |
| Image () | |
| Default constructor initializes to zero size. | |
| Image (size_t rows, size_t columns) | |
| Constructs a "rows x columns" element image. | |
| Image (const Image< FORMAT > &source) | |
| The copy constructor does a shallow copy. | |
| Image (const Array2D< PixelType > &source) | |
| This constructor allows us to implicitly make an Image instance from an Array2D. | |
| Image (size_t rows, size_t columns, PixelType *const dataPtr) | |
| Construct an image around external data. | |
| Image (size_t rows, size_t columns, PixelType *const dataPtr, size_t *referenceCountPtr) | |
| Construct an image around external data with reference counting. | |
| virtual | ~Image () |
| Destroys the Image instance and deletes the internal data store if no remaining images point to it. | |
| virtual Image< FORMAT > | operator= (const PixelType &value) |
| This assignment operator copies its argument into each pixel of the image. | |
The template parameter indicates the format of the image, such as GRAY8, RGB8, YUV420, etc. Please see the ImageFormat enum for legal values. Please see the ImageFormatTraits class template for the characteristics of the available image formats.
Definition at line 38 of file image.h.
| dlr::computerVision::Image< FORMAT >::Image | ( | ) | [inline] |
| dlr::computerVision::Image< FORMAT >::Image | ( | size_t | rows, | |
| size_t | columns | |||
| ) | [inline] |
| dlr::computerVision::Image< FORMAT >::Image | ( | const Image< FORMAT > & | source | ) | [inline] |
| dlr::computerVision::Image< FORMAT >::Image | ( | const Array2D< PixelType > & | source | ) | [inline] |
| dlr::computerVision::Image< FORMAT >::Image | ( | size_t | rows, | |
| size_t | columns, | |||
| PixelType *const | dataPtr | |||
| ) | [inline] |
Construct an image around external data.
Images constructed in this way will not implement reference counting, and will not delete dataPtr when done. The elements of the Image are generally organized in row-major order, however special case formats such as YUV420 may specify their own ordering.
| rows | Number of rows in the image after successful construction. | |
| columns | Number of columns in the image after successful construction. | |
| dataPtr | A C-style array of PixelType into which the newly constructed Image should index. |
| dlr::computerVision::Image< FORMAT >::Image | ( | size_t | rows, | |
| size_t | columns, | |||
| PixelType *const | dataPtr, | |||
| size_t * | referenceCountPtr | |||
| ) | [inline] |
Construct an image around external data with reference counting.
Images constructed in this way will implement reference counting, and will delete dataPtr when done. This constructor is provide for ease of interaction with Array2D classes.
| rows | Number of rows in the image after successful construction. | |
| columns | Number of columns in the image after successful construction. | |
| dataPtr | A C-style array of PixelType into which the newly constructed Image should index. | |
| referenceCountPtr | A pointer to the associated reference count. |
| virtual dlr::computerVision::Image< FORMAT >::~Image | ( | ) | [inline, virtual] |
| virtual Image<FORMAT> dlr::computerVision::Image< FORMAT >::operator= | ( | const PixelType & | value | ) | [inline, virtual] |
This assignment operator copies its argument into each pixel of the image.
It is provided avoid an implicit cast when using the corresponding Array2D operator.
| value | This argument is the value to be copied. |
1.5.8