Fawkes API  Fawkes Development Version
firevision::SkyblueQualifier Class Reference

SkyblueQualifier for a single pixel. More...

#include <apps/nao_loc/qualifiers.h>

Inheritance diagram for firevision::SkyblueQualifier:

Public Member Functions

 SkyblueQualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace)
 Constructor. More...
 
virtual int get (fawkes::upoint_t pixel)
 Getter. More...
 
- Public Member Functions inherited from firevision::Qualifier
 Qualifier ()
 Default constructor. More...
 
virtual ~Qualifier ()
 Destructor. More...
 
virtual unsigned char * get_buffer ()
 Get buffer. More...
 
virtual void set_buffer (unsigned char *buffer, unsigned int width=0, unsigned int height=0)
 buffer setter More...
 
virtual colorspace_t get_colorspace ()
 Get colorspace. More...
 
virtual void set_colorspace (colorspace_t colorspace)
 colorspace setter More...
 

Additional Inherited Members

- Protected Member Functions inherited from firevision::Qualifier
 Qualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace)
 Constructor. More...
 
- Protected Attributes inherited from firevision::Qualifier
unsigned char * buffer_
 Image buffer. More...
 
unsigned int width_
 Width of the buffer. More...
 
unsigned int height_
 Height of the buffer. More...
 
unsigned int size_
 Size of the buffer. More...
 
colorspace_t colorspace_
 Colorspace of the buffer. More...
 

Detailed Description

SkyblueQualifier for a single pixel.

Uses the value of the U/V-channels

Author
Christof Rath

Definition at line 86 of file qualifiers.h.

Constructor & Destructor Documentation

◆ SkyblueQualifier()

firevision::SkyblueQualifier::SkyblueQualifier ( unsigned char *  buffer,
unsigned int  width,
unsigned int  height,
colorspace_t  colorspace 
)

Constructor.

Parameters
buffercontaining the image
widthof the image
heightof the image
colorspacethe colorspace in action

Definition at line 189 of file qualifiers.cpp.

Member Function Documentation

◆ get()

int firevision::SkyblueQualifier::get ( fawkes::upoint_t  pixel)
virtual

Getter.

Parameters
pixelthe pixel of interest
Returns
a corresponding int value

Implements firevision::Qualifier.

Definition at line 201 of file qualifiers.cpp.

References firevision::Qualifier::buffer_, firevision::Qualifier::height_, firevision::Qualifier::size_, firevision::Qualifier::width_, fawkes::upoint_t::x, and fawkes::upoint_t::y.


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