Fawkes API
Fawkes Development Version
|
LumaQualifier for a single pixel. More...
#include <apps/nao_loc/qualifiers.h>
Public Member Functions | |
LumaQualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace) | |
Constructor. More... | |
virtual int | get (fawkes::upoint_t pixel) |
Getter. More... | |
![]() | |
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 | |
![]() | |
Qualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace) | |
Constructor. More... | |
![]() | |
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... | |
LumaQualifier for a single pixel.
Uses the value of the Y-channel
Definition at line 74 of file qualifiers.h.
firevision::LumaQualifier::LumaQualifier | ( | unsigned char * | buffer, |
unsigned int | width, | ||
unsigned int | height, | ||
colorspace_t | colorspace | ||
) |
Constructor.
buffer | containing the image |
width | of the image |
height | of the image |
colorspace | the colorspace in action |
Definition at line 149 of file qualifiers.cpp.
|
virtual |
Getter.
pixel | the pixel of interest |
Implements firevision::Qualifier.
Definition at line 161 of file qualifiers.cpp.
References firevision::Qualifier::buffer_, firevision::Qualifier::height_, firevision::Qualifier::width_, fawkes::upoint_t::x, and fawkes::upoint_t::y.