Abstract Qualifier for a single pixel. More...
#include <apps/nao_loc/qualifiers.h>

Public Member Functions | |
| Qualifier () | |
| Default constructor. | |
| virtual | ~Qualifier () |
| Destructor. | |
| virtual int | get (fawkes::point_t pixel)=0 |
| Getter. | |
| 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 | |
Protected Member Functions | |
| Qualifier (unsigned char *buffer, unsigned int width, unsigned int height, colorspace_t colorspace) | |
| Constructor. | |
Protected Attributes | |
| 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. | |
Abstract Qualifier for a single pixel.
Definition at line 34 of file qualifiers.h.
| firevision::Qualifier::Qualifier | ( | ) |
Default constructor.
Definition at line 44 of file qualifiers.cpp.
References buffer_, colorspace_, height_, size_, and width_.
| firevision::Qualifier::~Qualifier | ( | ) | [virtual] |
Destructor.
Definition at line 74 of file qualifiers.cpp.
| firevision::Qualifier::Qualifier | ( | unsigned char * | buffer, | |
| unsigned int | width, | |||
| unsigned int | height, | |||
| colorspace_t | colorspace | |||
| ) | [protected] |
Constructor.
| buffer | containing the image | |
| width | of the image | |
| height | of the image | |
| colorspace | the colorspace in action |
Definition at line 59 of file qualifiers.cpp.
References colorspace_, and set_buffer().
| virtual int firevision::Qualifier::get | ( | fawkes::point_t | pixel | ) | [pure virtual] |
Getter.
| pixel | the pixel of interest |
Implemented in firevision::LumaQualifier, firevision::SkyblueQualifier, and firevision::YellowQualifier.
Referenced by firevision::GradientClassifier::classify().
| unsigned char * firevision::Qualifier::get_buffer | ( | ) | [virtual] |
Get buffer.
Definition at line 82 of file qualifiers.cpp.
References buffer_.
Referenced by firevision::GradientClassifier::classify().
| colorspace_t firevision::Qualifier::get_colorspace | ( | ) | [virtual] |
Get colorspace.
Definition at line 115 of file qualifiers.cpp.
References colorspace_.
| void firevision::Qualifier::set_buffer | ( | unsigned char * | buffer, | |
| unsigned int | width = 0, |
|||
| unsigned int | height = 0 | |||
| ) | [virtual] |
buffer setter
| buffer | containing the image | |
| width | of the image (if 0 the param will be ignored) | |
| height | of the image (if 0 the param will be ignored) |
Definition at line 93 of file qualifiers.cpp.
References buffer_, height_, size_, and width_.
Referenced by Qualifier(), and firevision::GradientClassifier::set_src_buffer().
| void firevision::Qualifier::set_colorspace | ( | colorspace_t | colorspace | ) | [virtual] |
colorspace setter
| colorspace | the colorspace in action |
Definition at line 125 of file qualifiers.cpp.
References colorspace_.
unsigned char* firevision::Qualifier::buffer_ [protected] |
Image buffer.
Definition at line 59 of file qualifiers.h.
Referenced by firevision::YellowQualifier::get(), firevision::SkyblueQualifier::get(), firevision::LumaQualifier::get(), get_buffer(), Qualifier(), and set_buffer().
colorspace_t firevision::Qualifier::colorspace_ [protected] |
Colorspace of the buffer.
Definition at line 70 of file qualifiers.h.
Referenced by get_colorspace(), Qualifier(), and set_colorspace().
unsigned int firevision::Qualifier::height_ [protected] |
Height of the buffer.
Definition at line 64 of file qualifiers.h.
Referenced by firevision::YellowQualifier::get(), firevision::SkyblueQualifier::get(), firevision::LumaQualifier::get(), Qualifier(), and set_buffer().
unsigned int firevision::Qualifier::size_ [protected] |
Size of the buffer.
Definition at line 67 of file qualifiers.h.
Referenced by firevision::YellowQualifier::get(), firevision::SkyblueQualifier::get(), Qualifier(), and set_buffer().
unsigned int firevision::Qualifier::width_ [protected] |
Width of the buffer.
Definition at line 62 of file qualifiers.h.
Referenced by firevision::YellowQualifier::get(), firevision::SkyblueQualifier::get(), firevision::LumaQualifier::get(), Qualifier(), and set_buffer().
1.6.1