|
| Image (Image< T > const &other) |
| Copy constructor.
|
|
| Image (int64_t width, int64_t height, int64_t channels) |
| Allocating constructor.
|
|
| Image (void)=default |
| Default constructor creates an empty image.
|
|
void | add_channels (int64_t amount, T const &value=T(0)) |
| Adds 'amount' channels to the back with default value 'value'.
|
|
T & | at (int64_t index) |
| Linear indexing of image data.
|
|
T const & | at (int64_t index) const |
| Linear indexing of image data.
|
|
T & | at (int64_t index, int64_t channel) |
| Linear indexing of channel data.
|
|
T const & | at (int64_t index, int64_t channel) const |
| Linear indexing of channel data.
|
|
T & | at (int64_t x, int64_t y, int64_t channel) |
| 2D indexing of image data, more expensive.
|
|
T const & | at (int64_t x, int64_t y, int64_t channel) const |
| 2D indexing of image data, more expensive.
|
|
void | copy_channel (int64_t src, int64_t dest) |
| Copies channel from src to dest.
|
|
void | delete_channel (int64_t channel) |
| Deletes a channel from the image.
|
|
Ptr | duplicate (void) const |
| Duplicates the image.
|
|
void | fill_color (T const *color) |
| Fills every pixel of the image with the given color.
|
|
T | linear_at (float x, float y, int64_t channel) const |
| Linear interpolation (more expensive) for a single color channel.
|
|
void | linear_at (float x, float y, T *px) const |
| Linear interpolation (more expensive) for all color channels.
|
|
T & | operator() (int64_t index) |
|
T const & | operator() (int64_t index) const |
|
T & | operator() (int64_t index, int64_t channel) |
|
T const & | operator() (int64_t index, int64_t channel) const |
|
T & | operator() (int64_t x, int64_t y, int64_t channel) |
|
T const & | operator() (int64_t x, int64_t y, int64_t channel) const |
|
T & | operator[] (int64_t index) |
|
T const & | operator[] (int64_t index) const |
|
void | swap_channels (int64_t c1, int64_t c2) |
| Swaps channels 'c1' and 'c2'.
|
|
| TypedImageBase (TypedImageBase< T > const &other) |
| Copy constructor duplicates another image.
|
|
| TypedImageBase (void)=default |
| Default constructor creates an empty image.
|
|
virtual | ~TypedImageBase (void)=default |
|
void | allocate (int64_t width, int64_t height, int64_t chans) |
| Allocates new image space, clearing previous content.
|
|
T * | begin (void) |
| Returns data pointer to beginning.
|
|
T const * | begin (void) const |
| Returns const data pointer to beginning.
|
|
virtual void | clear (void) |
| Clears the image data from memory.
|
|
virtual ImageBase::Ptr | duplicate_base (void) const |
| Duplicates the image.
|
|
T * | end (void) |
| Returns data pointer to end.
|
|
T const * | end (void) const |
| Returns const data pointer to end.
|
|
void | fill (T const &value) |
| Fills the data with a constant value.
|
|
char * | get_byte_pointer (void) |
| Returns the char pointer to the data.
|
|
char const * | get_byte_pointer (void) const |
| Returns the char pointer to the data.
|
|
std::size_t | get_byte_size (void) const |
| Returns the size of the image in bytes (w * h * c * BPV).
|
|
ImageData & | get_data (void) |
| Returns the data vector for the image.
|
|
ImageData const & | get_data (void) const |
| Returns the data vector for the image.
|
|
T * | get_data_pointer (void) |
| Returns the data pointer.
|
|
T const * | get_data_pointer (void) const |
| Returns the data pointer.
|
|
int64_t | get_pixel_amount (void) const |
| Returns the amount of pixels in the image (w * h).
|
|
virtual ImageType | get_type (void) const |
| Value type information by template specialization.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
ImageType | get_type (void) const |
| Value type information.
|
|
char const * | get_type_string (void) const |
| Returns a string representation of the image data type.
|
|
int64_t | get_value_amount (void) const |
| Returns the amount of values in the image (w * h * c).
|
|
void | resize (int64_t width, int64_t height, int64_t chans) |
| Resizes the underlying image data vector.
|
|
void | swap (TypedImageBase< T > &other) |
| Swaps the contents of the images.
|
|
| ImageBase (void)=default |
| Initializes members with 0.
|
|
virtual | ~ImageBase (void)=default |
|
int64_t | channels (void) const |
| Returns the amount of channels in the image.
|
|
int64_t | height (void) const |
| Returns the height of the image.
|
|
bool | reinterpret (int64_t new_w, int64_t new_h, int64_t new_c) |
| Re-interprets the dimensions of the image.
|
|
bool | valid (void) const |
| Returns false if one of width, height or channels is 0.
|
|
int64_t | width (void) const |
| Returns the width of the image.
|
|
template<typename T>
class mve::Image< T >
Multi-channel image class of arbitrary but homogenous data type.
Image data is interleaved, i.e. "RGBRGB...", not planar "RR..GG..BB..".
Definition at line 39 of file image.h.