Qualifier Class Reference
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 () |
| buffer getter | |
| virtual void | set_buffer (unsigned char *buffer, unsigned int width=0, unsigned int height=0) |
| buffer setter | |
| virtual colorspace_t | get_colorspace () |
| colorspace getter | |
| 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. | |
Detailed Description
Abstract Qualifier for a single pixel.
Definition at line 29 of file qualifiers.h.
Constructor & Destructor Documentation
| Qualifier::Qualifier | ( | ) |
Default constructor.
Definition at line 38 of file qualifiers.cpp.
References buffer_, colorspace_, height_, size_, and width_.
| Qualifier::~Qualifier | ( | ) | [virtual] |
| Qualifier::Qualifier | ( | unsigned char * | buffer, | |
| unsigned int | width, | |||
| unsigned int | height, | |||
| colorspace_t | colorspace | |||
| ) | [protected] |
Constructor.
- Parameters:
-
buffer containing the image width of the image height of the image colorspace the colorspace in action
Definition at line 53 of file qualifiers.cpp.
References colorspace_, and set_buffer().
Member Function Documentation
| virtual int Qualifier::get | ( | fawkes::point_t | pixel | ) | [pure virtual] |
Getter.
- Parameters:
-
pixel the pixel of interest
- Returns:
- a corresponding int value
Implemented in LumaQualifier, SkyblueQualifier, and YellowQualifier.
Referenced by GradientClassifier::classify().
| unsigned char * Qualifier::get_buffer | ( | ) | [virtual] |
buffer getter
Definition at line 75 of file qualifiers.cpp.
References buffer_.
Referenced by GradientClassifier::classify().
| colorspace_t Qualifier::get_colorspace | ( | ) | [virtual] |
| void Qualifier::set_buffer | ( | unsigned char * | buffer, | |
| unsigned int | width = 0, |
|||
| unsigned int | height = 0 | |||
| ) | [virtual] |
buffer setter
- Parameters:
-
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 86 of file qualifiers.cpp.
References buffer_, height_, size_, and width_.
Referenced by Qualifier(), and GradientClassifier::set_src_buffer().
| void Qualifier::set_colorspace | ( | colorspace_t | colorspace | ) | [virtual] |
colorspace setter
- Parameters:
-
colorspace the colorspace in action
Definition at line 117 of file qualifiers.cpp.
References colorspace_.
Member Data Documentation
unsigned char* Qualifier::buffer_ [protected] |
Image buffer.
Definition at line 54 of file qualifiers.h.
Referenced by YellowQualifier::get(), SkyblueQualifier::get(), LumaQualifier::get(), get_buffer(), Qualifier(), and set_buffer().
colorspace_t Qualifier::colorspace_ [protected] |
Colorspace of the buffer.
Definition at line 65 of file qualifiers.h.
Referenced by get_colorspace(), Qualifier(), and set_colorspace().
unsigned int Qualifier::height_ [protected] |
Height of the buffer.
Definition at line 59 of file qualifiers.h.
Referenced by YellowQualifier::get(), SkyblueQualifier::get(), LumaQualifier::get(), Qualifier(), and set_buffer().
unsigned int Qualifier::size_ [protected] |
Size of the buffer.
Definition at line 62 of file qualifiers.h.
Referenced by YellowQualifier::get(), SkyblueQualifier::get(), Qualifier(), and set_buffer().
unsigned int Qualifier::width_ [protected] |
Width of the buffer.
Definition at line 57 of file qualifiers.h.
Referenced by YellowQualifier::get(), SkyblueQualifier::get(), LumaQualifier::get(), Qualifier(), and set_buffer().
The documentation for this class was generated from the following files:
- src/firevision/classifiers/qualifiers.h
- src/firevision/classifiers/qualifiers.cpp

