Fawkes API
Fawkes Development Version
|
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);
86 SkyblueQualifier(
unsigned char *buffer,
89 colorspace_t colorspace);
95 static const unsigned int threshold_ = 128;
98 class YellowQualifier :
public Qualifier
102 YellowQualifier(
unsigned char *buffer,
105 colorspace_t colorspace);
111 static const unsigned int threshold_ = 100;
116 #endif // FIREVISION_APPS_NAO_LOC_QUALIFIERS_H__
unsigned char * buffer_
Image buffer.
unsigned int size_
Size of the buffer.
virtual int get(fawkes::upoint_t pixel)
Getter.
virtual colorspace_t get_colorspace()
Get colorspace.
Point with cartesian coordinates as unsigned integers.
colorspace_t colorspace_
Colorspace of the buffer.
virtual int get(fawkes::upoint_t pixel)
Getter.
virtual unsigned char * get_buffer()
Get buffer.
virtual int get(fawkes::upoint_t pixel)
Getter.
unsigned int width_
Width of the buffer.
virtual void set_colorspace(colorspace_t colorspace)
colorspace setter
Qualifier()
Default constructor.
virtual ~Qualifier()
Destructor.
virtual int get(fawkes::upoint_t pixel)=0
Getter.
unsigned int height_
Height of the buffer.
virtual void set_buffer(unsigned char *buffer, unsigned int width=0, unsigned int height=0)
buffer setter