Public Types |
| typedef T | PixelType |
| | Type of each pixel.
|
| typedef T::ValueType | ValueType |
| | Color value type.
|
| typedef T::ColorType | ColorType |
| | Color index type.
|
Public Member Functions |
| | Image (const CameraData &cameraData, int width, int height) |
| | Constructor.
|
|
const CameraData & | cameraData () const |
| | The photograph CameraData.
|
|
unsigned int | width () const |
| | Image width in pixels.
|
|
unsigned int | height () const |
| | Image height in pixels.
|
|
unsigned int | nPixels () const |
| | Number of pixels in the Image.
|
|
unsigned int | filters () const |
| | Filters (cached from cameraData()) FIXME remove this.
|
| void | setFilters (unsigned int filters) |
| | Filters (cached from cameraData()) FIXME remove this.
|
| ColorType | colorAtPoint (const Point &point) const |
| | The color of the camera sensor array at this point.
|
| ColorType | colorAtPoint (unsigned int row, unsigned int col) const |
| | The color of the camera sensor array at this point.
|
| PixelType * | pixels () |
| | A pointer to the first pixel in the image, useful for iterating.
|
|
PixelType * | pixelsEnd () |
| | A pointer to one past the last pixel in the image, useful for iterating.
|
|
const PixelType * | constPixels () const |
| | A pointer to the first pixel in the image, useful for iterating.
|
|
const PixelType * | constPixelsEnd () const |
| | A pointer to one past the last pixel in the image, useful for iterating.
|
| const PixelType * | constPixelsAtRow (int row) const |
| | A pointer to the first pixel in the given row, useful for iterating.
|
| PixelType * | pixelsAtRow (int row) |
| | A pointer to the first pixel in the given row, useful for iterating.
|
| PixelType * | pixelsAtPoint (const Point &point) |
| | A pointer to the specified pixel, useful for iterating.
|
| PixelType * | pixelsAtPoint (unsigned int row, unsigned int col) |
| | A pointer to the specified pixel, useful for iterating.
|
| const PixelType * | constPixelsAtPoint (const Point &point) const |
| | A pointer to the specified pixel, useful for iterating.
|
| const PixelType * | constPixelsAtPoint (unsigned int row, unsigned int col) const |
| | A pointer to the specified pixel, useful for iterating.
|
|
PixelType & | pixelAtPoint (const Point &point) |
| | A mutable pixel at the specified point.
|
|
PixelType & | pixelAtPoint (unsigned int row, unsigned int col) |
| | A mutable pixel at the specified point.
|
|
const PixelType & | constPixelAtPoint (const Point &point) const |
| | An immutable pixel at the specified point.
|
|
const PixelType & | constPixelAtPoint (unsigned int row, unsigned int col) const |
| | An immutable pixel at the specified point.
|
template<typename T>
class refinery::Image< T >
A grid of pixels with accompanying metadata.
The image pixels are contiguous and can be accessed as one big array using pixels().
- Template Parameters:
-
- Examples:
-
util/raw2ppm.cc.
Definition at line 332 of file image.h.