|
ifw-fgf 1.0.0-pre1
|
Raw Image Class to handle one image in memory. More...
#include <rawImage.hpp>
Public Member Functions | |
| RawImage (int width, int height, int bpp) | |
| Constructor. | |
| RawImage (int width, int height, int bpp, unsigned char *image) | |
| RawImage (const RawImage &)=delete | |
| RawImage & | operator= (RawImage &)=delete |
| virtual | ~RawImage () |
| int | GetWidth () |
| Get image width. | |
| int | GetHeight () |
| Get image height. | |
| int | GetBpp () |
| Get image bytes per pixel. | |
| int | GetSize () |
| Get image size. | |
| unsigned char * | GetImage () |
| Get a pointer to the image data. | |
| double | GetTimestamp () |
| void | SetTimestamp (const double ×tamp) |
Raw Image Class to handle one image in memory.
This class is used store the image received from the camera class that will send it to the publisher thread.
| ifw::fgf::common::RawImage::RawImage | ( | int | width, |
| int | height, | ||
| int | bpp ) |
Constructor.
Initialize image memory and main properties.
| ifw::fgf::common::RawImage::RawImage | ( | int | width, |
| int | height, | ||
| int | bpp, | ||
| unsigned char * | image ) |
|
delete |
|
virtual |
| int ifw::fgf::common::RawImage::GetBpp | ( | ) |
Get image bytes per pixel.
| int ifw::fgf::common::RawImage::GetHeight | ( | ) |
Get image height.
| unsigned char * ifw::fgf::common::RawImage::GetImage | ( | ) |
Get a pointer to the image data.
The image is stored as an array of bytes.
| int ifw::fgf::common::RawImage::GetSize | ( | ) |
Get image size.
Size is width * height * bytes per pixel
| double ifw::fgf::common::RawImage::GetTimestamp | ( | ) |
| int ifw::fgf::common::RawImage::GetWidth | ( | ) |
Get image width.
| void ifw::fgf::common::RawImage::SetTimestamp | ( | const double & | timestamp | ) |