ifw-fgf 1.0.0-pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ifw::fgf::common::RawImage Class Reference

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
 
RawImageoperator= (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 &timestamp)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RawImage() [1/3]

ifw::fgf::common::RawImage::RawImage ( int width,
int height,
int bpp )

Constructor.

Initialize image memory and main properties.

◆ RawImage() [2/3]

ifw::fgf::common::RawImage::RawImage ( int width,
int height,
int bpp,
unsigned char * image )

◆ RawImage() [3/3]

ifw::fgf::common::RawImage::RawImage ( const RawImage & )
delete

◆ ~RawImage()

ifw::fgf::common::RawImage::~RawImage ( )
virtual

Member Function Documentation

◆ GetBpp()

int ifw::fgf::common::RawImage::GetBpp ( )

Get image bytes per pixel.

◆ GetHeight()

int ifw::fgf::common::RawImage::GetHeight ( )

Get image height.

◆ GetImage()

unsigned char * ifw::fgf::common::RawImage::GetImage ( )

Get a pointer to the image data.

The image is stored as an array of bytes.

◆ GetSize()

int ifw::fgf::common::RawImage::GetSize ( )

Get image size.

Size is width * height * bytes per pixel

◆ GetTimestamp()

double ifw::fgf::common::RawImage::GetTimestamp ( )

◆ GetWidth()

int ifw::fgf::common::RawImage::GetWidth ( )

Get image width.

◆ operator=()

RawImage & ifw::fgf::common::RawImage::operator= ( RawImage & )
delete

◆ SetTimestamp()

void ifw::fgf::common::RawImage::SetTimestamp ( const double & timestamp)

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