Flair
Framework Libre Air
flair::core::cvimage Class Reference

Class defining an image of kind IplImage. More...

#include <cvimage.h>

+ Inheritance diagram for flair::core::cvimage:

Classes

class  Type
 

Public Member Functions

 cvimage (const Object *parent, uint16_t width, uint16_t height, Type::Format format, std::string name="", bool allocate_data=true, int n=1)
 Constructor. More...
 
 ~cvimage ()
 Destructor. More...
 
Type const & GetDataType () const
 
- Public Member Functions inherited from flair::core::io_data
 io_data (const Object *parent, std::string name, int n)
 Constructor. More...
 
virtual ~io_data ()
 Destructor. More...
 
void SetDataTime (Time time)
 Set data time, also caluculates the delta time based on last call. More...
 
void SetDataTime (Time time, Time deltaTime)
 Set data time and delta time (thus delta time is not based on last call) More...
 
Time DataTime (void) const
 Data time. More...
 
Time DataDeltaTime (void) const
 Data delta time. More...
 
void GetDataTime (Time &time, Time &deltaTime) const
 Get data time and delta time. More...
 
const io_dataPrev (int n) const
 Previous data. More...
 
virtual void RawWrite (char *src)
 Raw write datas. More...
 
- Public Member Functions inherited from flair::core::Mutex
 Mutex (const Object *parent, std::string name="")
 Constructor. More...
 
 ~Mutex ()
 Destructor. More...
 
void GetMutex (void) const
 GetMutex. More...
 
void ReleaseMutex (void) const
 ReleaseMutex. More...
 
- Public Member Functions inherited from flair::core::Object
 Object (const Object *parent=NULL, std::string name="", std::string type="")
 Constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
std::string ObjectName (void) const
 Name. More...
 
std::string ObjectType (void) const
 Type. More...
 
const ObjectParent (void) const
 Parent. More...
 
std::vector< const Object * > * TypeChilds (void) const
 Childs of the same type. More...
 
std::vector< const Object * > * Childs (void) const
 Childs. More...
 
void Information (const char *function, int line, const char *format,...) const
 Formatted information. More...
 
void Warning (const char *function, const char *format,...) const
 Formatted warning. More...
 
void Error (const char *function, const char *format,...) const
 Formatted error. More...
 
bool ErrorOccured (bool recursive=true) const
 Has an errror occured? More...
 

Public Attributes

IplImage * img
 IplImage. More...
 

Additional Inherited Members

- Public Types inherited from flair::core::Object
enum  color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 }
 
- Protected Member Functions inherited from flair::core::io_data
void AppendLogDescription (std::string description, DataType const &datatype)
 Specify the description of the reimplemented class data's. More...
 
void SetPtrToCircle (void **ptr)
 Set the datas to circle. More...
 
- Protected Attributes inherited from flair::core::io_data
io_dataprev
 Pointer to previous data. More...
 

Detailed Description

Class defining an image of kind IplImage.

IplImage is an image struct defined in OpenCV.

Constructor & Destructor Documentation

flair::core::cvimage::cvimage ( const Object parent,
uint16_t  width,
uint16_t  height,
Type::Format  format,
std::string  name = "",
bool  allocate_data = true,
int  n = 1 
)

Constructor.

Construct an io_data representing an IplImage.

Parameters
parentparent
widthimage width
heightimage height
namename
allocate_dataif true, IplImage image data is allocated; otherwise img->imagedata must be changed
nnumber of samples
flair::core::cvimage::~cvimage ( )

Destructor.

Member Data Documentation

IplImage* flair::core::cvimage::img

IplImage.

Returns
IplImage