#include <image.h>
T | The pixel type for this image. Typically either CVD::byte or CVD::Rgb<CVD::byte> > are used, but images could be constructed of any available type. |
Loading and saving, format conversion and some copying functionality is provided by external functions rather than as part of this class. See the Image loading and saving, and format conversion module for documentation of these functions.
Definition at line 643 of file image.h.
Public Member Functions | |
Image (const Image ©) | |
Image (const CopyPlaceHolder &c) | |
CopyPlaceHolder | copy_from_me () const |
void | copy_from (const BasicImage< T > ©) |
void | copy_from (const SubImage< T > ©) |
void | make_unique () |
const Image & | operator= (const Image ©of) |
Image () | |
Image (const ImageRef &size) | |
Image (const ImageRef &size, const T &val) | |
Image (const std::pair< ImageRef, T > &p) | |
void | resize (const ImageRef &size) |
void | resize (const ImageRef &size, const T &val) |
~Image () | |
Classes | |
struct | CopyPlaceHolder |
CVD::Image< T >::Image | ( | const Image< T > & | copy | ) | [inline] |
CVD::Image< T >::Image | ( | const CopyPlaceHolder & | c | ) | [inline] |
CopyFrom" constructor.
If constructed from this, it creates a new copy of the data. This provides symmetry with copy_from_me
c | The (placeholder) image to copy from. |
CVD::Image< T >::Image | ( | ) | [inline] |
CVD::Image< T >::Image | ( | const ImageRef & | size | ) | [inline] |
CVD::Image< T >::Image | ( | const ImageRef & | size, | |
const T & | val | |||
) | [inline] |
CVD::Image< T >::Image | ( | const std::pair< ImageRef, T > & | p | ) | [inline] |
Create a filled image of a given size.
p | std::pair<ImageRef, T> containing the size and fill value. Useful for creating containers of images with ImageCreationIterator |
CVD::Image< T >::~Image | ( | ) | [inline] |
CopyPlaceHolder CVD::Image< T >::copy_from_me | ( | ) | const [inline] |
void CVD::Image< T >::copy_from | ( | const BasicImage< T > & | copy | ) | [inline] |
Make a (new) copy of the image, also making a copy of the data.
copy | The image to copy |
Definition at line 684 of file image.h.
Referenced by CVD::Image< CVD::Rgb< unsigned char > >::Image(), and CVD::Image< CVD::Rgb< unsigned char > >::make_unique().
void CVD::Image< T >::copy_from | ( | const SubImage< T > & | copy | ) | [inline] |
void CVD::Image< T >::make_unique | ( | ) | [inline] |
const Image& CVD::Image< T >::operator= | ( | const Image< T > & | copyof | ) | [inline] |
void CVD::Image< T >::resize | ( | const ImageRef & | size | ) | [inline] |
Resize the image (destroying the data).
This does not affect any other images pointing to this data.
size | The new size of the image |
Definition at line 778 of file image.h.
Referenced by CVD::Image< CVD::Rgb< unsigned char > >::copy_from(), and CVD::joinImages().
void CVD::Image< T >::resize | ( | const ImageRef & | size, | |
const T & | val | |||
) | [inline] |