26 #include <fvfilters/segment_color.h> 27 #include <fvmodels/color/colormodel.h> 28 #include <fvutils/color/yuv.h> 32 namespace firevision {
84 unsigned char *lyp = yp;
85 unsigned char *lup = up;
86 unsigned char *lvp = vp;
87 unsigned char *ldyp = dyp;
88 unsigned char *ldup = dup;
89 unsigned char *ldvp = dvp;
94 for (h = 0; (h <
src_roi[0]->
height) && (h < dst_roi->height); ++h) {
95 for (w = 0; (w <
src_roi[0]->
width) && (w < dst_roi->width); w += 2) {
FilterColorSegmentation(ColorModel *cm)
Constructor.
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
virtual void apply()
Apply the filter.
unsigned int image_width
width of image that contains this ROI
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned int image_height
height of image that contains this ROI
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned int height
ROI height.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const =0
Determine classification of YUV pixel.