|
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. | |
| virtual int | get (fawkes::point_t pixel) |
| Getter. | |
LumaQualifier for a single pixel.
Uses the value of the Y-channel
| 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.
| int firevision::LumaQualifier::get | ( | fawkes::point_t | pixel | ) | [virtual] |
Getter.
| pixel | the pixel of interest |
Implements firevision::Qualifier.
Definition at line 161 of file qualifiers.cpp.
References fawkes::point_t::x, firevision::Qualifier::width_, fawkes::point_t::y, firevision::Qualifier::height_, and firevision::Qualifier::buffer_.