22 #ifndef _FIREVISION_APPS_NAO_LOC_QUALIFIERS_H_ 23 #define _FIREVISION_APPS_NAO_LOC_QUALIFIERS_H_ 25 #include <fvutils/base/types.h> 26 #include <fvutils/color/colorspaces.h> 28 namespace firevision {
43 virtual void set_buffer(
unsigned char *buffer,
unsigned int width = 0,
unsigned int height = 0);
52 colorspace_t colorspace);
76 colorspace_t colorspace);
89 colorspace_t colorspace);
95 static const unsigned int threshold_ = 128;
105 colorspace_t colorspace);
111 static const unsigned int threshold_ = 100;
116 #endif // FIREVISION_APPS_NAO_LOC_QUALIFIERS_H__ virtual int get(fawkes::upoint_t pixel)
Getter.
virtual void set_colorspace(colorspace_t colorspace)
colorspace setter
SkyblueQualifier for a single pixel.
LumaQualifier for a single pixel.
virtual void set_buffer(unsigned char *buffer, unsigned int width=0, unsigned int height=0)
buffer setter
virtual int get(fawkes::upoint_t pixel)=0
Getter.
virtual unsigned char * get_buffer()
Get buffer.
virtual int get(fawkes::upoint_t pixel)
Getter.
virtual colorspace_t get_colorspace()
Get colorspace.
unsigned int size_
Size of the buffer.
virtual int get(fawkes::upoint_t pixel)
Getter.
YellowQualifier for a single pixel.
unsigned int width_
Width of the buffer.
colorspace_t colorspace_
Colorspace of the buffer.
unsigned char * buffer_
Image buffer.
Point with cartesian coordinates as unsigned integers.
Qualifier()
Default constructor.
virtual ~Qualifier()
Destructor.
unsigned int height_
Height of the buffer.
Abstract Qualifier for a single pixel.