|
libcvd
|
A generic image class to manage a block of arbitrarily padded data as an image. More...
#include <image.h>


Public Member Functions | |
| virtual | ~BasicImage () |
| The image data is not destroyed when a BasicImage is destroyed. | |
| ConstPointerType | data () const |
| Returns the raw image data. | |
| PointerType | data () |
| Returns the raw image data. | |
| void | copy_from (const BasicImage< T > &other) |
| ImageRef | size () const |
| What is the size of this image? | |
| void | zero () |
| Set image data to all zero bytes. More... | |
| void | fill (const T d) |
| Set all the pixels in the image to a value. More... | |
| BasicImage (const BasicImage ©of)=default | |
| Copy constructor. More... | |
| BasicImage & | operator= (const BasicImage ©of)=default |
| Assignment operator. More... | |
Public Member Functions inherited from CVD::Internal::ImageData< T > | |
| ImageData (const ImageData &)=default | |
| ImageData (void *data, size_t len, ImageRef sz) | |
| ImageData (void *data, ImageRef sz) | |
| ImageData & | operator= (const ImageData &)=default |
| size_t | datalength () const |
| What is the row stride of the image? | |
Additional Inherited Members | |
Protected Types inherited from CVD::Internal::ImageData< T > | |
| using | PointerType = void * |
| using | ConstPointerType = const void * |
Protected Attributes inherited from CVD::Internal::ImageData< T > | |
| void * | my_data |
| ImageRef | my_size |
| size_t | data_length |
A generic image class to manage a block of arbitrarily padded data as an image.
Provides basic image access such as accessing a particular pixel co-ordinate.
| 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. |
A BasicImage does not manage its own data, but provides access to an arbitrary externally-managed block of data as though it were an image. Use the derived Image class if you want an image which also has its own data.
|
default |
Copy constructor.
| copyof | The image to copy |
|
inline |
Set all the pixels in the image to a value.
This is a relatively fast operation, using memfill. Safe to run on empty images.
| d | The value to write into the image |
|
default |
Assignment operator.
| copyof | The image to copy |
|
inline |
Set image data to all zero bytes.
This only works on POD
1.8.13