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;
LumaQualifier for a single pixel.
virtual int get(fawkes::upoint_t pixel)
Getter.
Abstract Qualifier for a single pixel.
unsigned int size_
Size of the buffer.
Qualifier()
Default constructor.
unsigned int width_
Width of the buffer.
virtual colorspace_t get_colorspace()
Get colorspace.
unsigned int height_
Height of the buffer.
virtual unsigned char * get_buffer()
Get buffer.
colorspace_t colorspace_
Colorspace of the buffer.
virtual void set_colorspace(colorspace_t colorspace)
colorspace setter
virtual int get(fawkes::upoint_t pixel)=0
Getter.
virtual void set_buffer(unsigned char *buffer, unsigned int width=0, unsigned int height=0)
buffer setter
unsigned char * buffer_
Image buffer.
virtual ~Qualifier()
Destructor.
SkyblueQualifier for a single pixel.
virtual int get(fawkes::upoint_t pixel)
Getter.
YellowQualifier for a single pixel.
virtual int get(fawkes::upoint_t pixel)
Getter.
Point with cartesian coordinates as unsigned integers.