|
Fawkes API
Fawkes Development Version
|
YellowQualifier for a single pixel. More...
#include <apps/nao_loc/qualifiers.h>

Public Member Functions | |
| YellowQualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace) | |
| Constructor. | |
| virtual int | get (fawkes::point_t pixel) |
| Getter. | |
Public Member Functions inherited from firevision::Qualifier | |
| Qualifier () | |
| Default constructor. | |
| virtual | ~Qualifier () |
| Destructor. | |
| virtual unsigned char * | get_buffer () |
| Get buffer. | |
| virtual void | set_buffer (unsigned char *buffer, unsigned int width=0, unsigned int height=0) |
| buffer setter | |
| virtual colorspace_t | get_colorspace () |
| Get colorspace. | |
| virtual void | set_colorspace (colorspace_t colorspace) |
| colorspace setter | |
Additional Inherited Members | |
Protected Member Functions inherited from firevision::Qualifier | |
| Qualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace) | |
| Constructor. | |
Protected Attributes inherited from firevision::Qualifier | |
| unsigned char * | buffer_ |
| Image buffer. | |
| unsigned int | width_ |
| Width of the buffer. | |
| unsigned int | height_ |
| Height of the buffer. | |
| unsigned int | size_ |
| Size of the buffer. | |
| colorspace_t | colorspace_ |
| Colorspace of the buffer. | |
YellowQualifier for a single pixel.
Uses the value of the U/V-channels
Definition at line 102 of file qualifiers.h.
| firevision::YellowQualifier::YellowQualifier | ( | 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 236 of file qualifiers.cpp.
|
virtual |
Getter.
| pixel | the pixel of interest |
Implements firevision::Qualifier.
Definition at line 248 of file qualifiers.cpp.
References firevision::Qualifier::buffer_, firevision::Qualifier::height_, firevision::Qualifier::size_, firevision::Qualifier::width_, fawkes::point_t::x, and fawkes::point_t::y.