![]() |
Fledge
An open source edge computing platform for industrial users
|
Simple Image class that will be used within data points to store image data. More...
#include <dpimage.h>
Public Member Functions | |
DPImage (int width, int height, int depth, void *data) | |
DPImage constructor. More... | |
DPImage (const DPImage &rhs) | |
Copy constructor. More... | |
DPImage & | operator= (const DPImage &rhs) |
Assignment operator. More... | |
~DPImage () | |
Destructor for the image. | |
int | getHeight () |
Return the height of the image. | |
int | getWidth () |
Return the width of the image. | |
int | getDepth () |
Return the depth of the image in bits. | |
void * | getData () |
Return a pointer to the raw data of the image. | |
Protected Attributes | |
int | m_width |
int | m_height |
int | m_depth |
void * | m_pixels |
int | m_byteSize |
Simple Image class that will be used within data points to store image data.
This class merely acts to encapsulate the data of a simple image in memory, complex functionality will be supported elsewhere. Images within the class are stored as a simple, single area of memory the size of which is defined by the width, hieght and depth of the image.
DPImage::DPImage | ( | int | width, |
int | height, | ||
int | depth, | ||
void * | data | ||
) |
DPImage constructor.
width | The image width |
height | The image height |
depth | The image depth |
data | The actual image data |
Assignment operator.
rhs | Righthand side of equals operator |