A full image which manages its own data. More...
|Image (const Image ©)|
|Image (const CopyPlaceHolder &c)|
|CopyPlaceHolder||copy_from_me () const|
|void||copy_from (const BasicImage< T > ©)|
|void||copy_from (const SubImage< T > ©)|
|const Image &||operator= (const Image ©of)|
|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)|
A full image which manages its own data.
|T||The pixel type for this image. Typically either |
Images do reference counting on the data, so multiple images can point to one block of data. This means that copying an image is like copying a pointer (so use the same care); to further the analogy, operator() dereferences images. Copy constructing is quite fast (a 16-byte copy and an increment), so images can be efficiently passed back in functions or used in containers like std::vector
Image<> inherits all debugging macros from BasicImage and SubImage. In addition, the macro CVD_IMAGE_DEBUG_INITIALIZE_RANDOM will cause allocated memory to be initialized with random numbers before any constructors are called.
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.
|CopyPlaceHolder CVD::Image< T >::copy_from_me||(||)|| const