Fledge
An open source edge computing platform for industrial users
All Classes Functions Variables Pages
DPImage Class Reference

Simple Image class that will be used within data points to store image data. More...

#include <dpimage.h>

Inheritance diagram for DPImage:

Public Member Functions

 DPImage (int width, int height, int depth, void *data)
 DPImage constructor. More...
 
 DPImage (const DPImage &rhs)
 Copy constructor. More...
 
DPImageoperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DPImage() [1/2]

DPImage::DPImage ( int  width,
int  height,
int  depth,
void *  data 
)

DPImage constructor.

Parameters
widthThe image width
heightThe image height
depthThe image depth
dataThe actual image data

◆ DPImage() [2/2]

DPImage::DPImage ( const DPImage rhs)

Copy constructor.

Parameters
DPImageThe image to copy

Member Function Documentation

◆ operator=()

DPImage & DPImage::operator= ( const DPImage rhs)

Assignment operator.

Parameters
rhsRighthand side of equals operator

The documentation for this class was generated from the following files: