Image Utilities (IU)
|
Base class for 2D images (pitched memory). More...
#include <image.h>
Public Member Functions | |
Image () | |
virtual | ~Image () |
Image (unsigned int width, unsigned int height) | |
Image (const iu::Size< 2 > &size) | |
iu::Size< 2 > | size () const |
unsigned int | width () const |
unsigned int | height () const |
bool | sameType (const Image &from) |
size_t | numel () const |
virtual size_t | bytes () const |
virtual size_t | pitch () const |
virtual size_t | stride () const |
virtual unsigned int | bitDepth () const |
virtual bool | onDevice () const |
Protected Attributes | |
iu::Size< 2 > | size_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, Image const &image) |
Base class for 2D images (pitched memory).
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inlinevirtual |
Returns the bit depth of the data pointer.
Reimplemented in iu::ImageCpu< PixelType, Allocator >, and iu::ImageGpu< PixelType, Allocator >.
|
inlinevirtual |
Returns the total amount of bytes saved in the data buffer.
Reimplemented in iu::ImageCpu< PixelType, Allocator >, and iu::ImageGpu< PixelType, Allocator >.
|
inline |
|
inline |
Returns the number of pixels in the Image.
|
inlinevirtual |
Returns flag if the image data resides on the device/GPU (TRUE) or host/GPU (FALSE)
Reimplemented in iu::ImageCpu< PixelType, Allocator >, and iu::ImageGpu< PixelType, Allocator >.
|
inlinevirtual |
Returns the distance in bytes between starts of consecutive rows.
Reimplemented in iu::ImageCpu< PixelType, Allocator >, and iu::ImageGpu< PixelType, Allocator >.
|
inline |
|
inlinevirtual |
Returns the distance in pixels between starts of consecutive rows.
Reimplemented in iu::ImageCpu< PixelType, Allocator >, and iu::ImageGpu< PixelType, Allocator >.
|
inline |
|
friend |
Operator<< overloading. Output of Image class.