|
| Image () |
| Image constructor. More...
|
|
| Image (ColorEncoding color_rep, ComponentEncoding component_rep, index_t width, index_t height=1, index_t depth=1) |
| Image constructor. More...
|
|
| ~Image () override |
| Image destructor.
|
|
virtual void | acquire () |
| Some implementations get the image from some sources. Default implementation does nothing. More...
|
|
index_t | dimension () const |
| Gets the dimension of the image. More...
|
|
index_t | size (index_t axis) const |
| Gets the size of the image along one of the axes. More...
|
|
index_t | width () const |
| Gets the width of the image. More...
|
|
index_t | height () const |
| Gets the height of the image. More...
|
|
index_t | depth () const |
| Gets the depth of the image. More...
|
|
size_t | bytes_per_pixel () const |
| Gets the number of bytes per pixel. More...
|
|
size_t | components_per_pixel () const |
| Gets the number of components per pixel. More...
|
|
size_t | nb_pixels () const |
| Gets the number of pixels. More...
|
|
size_t | bytes () const |
| Gets the number of bytes. More...
|
|
ComponentEncoding | component_encoding () const |
| Gets the ComponentEncoding. More...
|
|
ColorEncoding | color_encoding () const |
| Gets the ColorEncoding. More...
|
|
const Colormap * | colormap () const |
| Gets the Colormap. More...
|
|
Colormap * | colormap () |
| Gets the Colormap. More...
|
|
void | set_colormap (Colormap *colormap) |
| Sets the Colormap. More...
|
|
Memory::pointer | base_mem () const |
| Gets the base memory. More...
|
|
Memory::byte * | base_mem_byte_ptr () const |
| Gets the base memory as a byte pointer. More...
|
|
Numeric::int16 * | base_mem_int16_ptr () const |
| Gets the base memory as a 16 bits integer pointer. More...
|
|
Numeric::int32 * | base_mem_int32_ptr () const |
| Gets the base memory as a 32 bits integer pointer. More...
|
|
Numeric::float32 * | base_mem_float32_ptr () const |
| Gets the base memory as a 32 bits floating point pointer. More...
|
|
Numeric::float64 * | base_mem_float64_ptr () const |
| Gets the base memory as a 64 bits floating point pointer. More...
|
|
Memory::pointer | pixel_base (index_t x) |
| Gets the address of a pixel in a 1D image. More...
|
|
Memory::byte * | pixel_base_byte_ptr (index_t x) |
| Gets the address of a pixel in a 1D image as a byte pointer. More...
|
|
Numeric::int16 * | pixel_base_int16_ptr (index_t x) |
| Gets the address of a pixel in a 1D image as a int16 pointer. More...
|
|
Numeric::int32 * | pixel_base_int32_ptr (index_t x) |
| Gets the address of a pixel in a 1D image as a int32 pointer. More...
|
|
Numeric::float32 * | pixel_base_float32_ptr (index_t x) |
| Gets the address of a pixel in a 1D image as a float32 pointer. More...
|
|
Numeric::float64 * | pixel_base_float64_ptr (index_t x) |
| Gets the address of a pixel in a 1D image as a float64 pointer. More...
|
|
Memory::pointer | pixel_base (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image. More...
|
|
Memory::byte * | pixel_base_byte_ptr (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image as a byte pointer. More...
|
|
Numeric::int16 * | pixel_base_int16_ptr (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image as an int16 pointer. More...
|
|
Numeric::int32 * | pixel_base_int32_ptr (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image as an int32 pointer. More...
|
|
Numeric::float32 * | pixel_base_float32_ptr (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image as a float32 pointer. More...
|
|
Numeric::float64 * | pixel_base_float64_ptr (index_t x, index_t y) |
| Gets the address of a pixel in a 2D image as a float64 pointer. More...
|
|
Memory::pointer | pixel_base (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image. More...
|
|
Memory::byte * | pixel_base_byte_ptr (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image as a byte pointer. More...
|
|
Numeric::int16 * | pixel_base_int16_ptr (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image as an int16 pointer. More...
|
|
Numeric::int32 * | pixel_base_int32_ptr (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image as an int32 pointer. More...
|
|
Numeric::float32 * | pixel_base_float32_ptr (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image as a float32 pointer. More...
|
|
Numeric::float64 * | pixel_base_float64_ptr (index_t x, index_t y, index_t z) |
| Gets the address of a pixel in a 3D image as a float64 pointer. More...
|
|
Memory::byte * | byte_ptr (Memory::pointer ptr) const |
| Converts an untyped pointer into a byte pointer. More...
|
|
Numeric::int16 * | int16_ptr (Memory::pointer ptr) const |
| Converts an untyped pointer into a 16 bits integer pointer. More...
|
|
Numeric::int32 * | int32_ptr (Memory::pointer ptr) const |
| Converts an untyped pointer into a 32 bits integer pointer. More...
|
|
Numeric::float32 * | float32_ptr (Memory::pointer ptr) const |
| Converts an untyped pointer into a 32 bits floating point pointer. More...
|
|
Numeric::float64 * | float64_ptr (Memory::pointer ptr) const |
| Converts an untyped pointer into a 64 bits floating point pointer. More...
|
|
void | flip_vertically () |
| Flips this image along the y axis.
|
|
void | swap_components (index_t channel1, index_t channel2) |
| Swaps two color components of this image. More...
|
|
void | initialize (ColorEncoding color_rep, ComponentEncoding component_rep, index_t size_x, index_t size_y=1, index_t size_z=1) |
| Creates storage for the specified encoding and image dimensions. More...
|
|
void | ref () const |
| Increments the reference count. More...
|
|
void | unref () const |
| Decrements the reference count. More...
|
|
bool | is_shared () const |
| Check if the object is shared. More...
|
|
int | nb_refs () const |
| Gets the number of references that point to this object. More...
|
|
An image.
Definition at line 59 of file image.h.