26 #include <fvfilters/segment.h>
27 #include <fvmodels/color/colormodel.h>
28 #include <fvutils/color/yuv.h>
32 namespace firevision {
76 unsigned char *lyp = yp;
77 unsigned char *lup = up;
78 unsigned char *lvp = vp;
79 unsigned char *ldyp = dyp;
81 for (h = 0; (h <
src_roi[0]->
height) && (h < dst_roi->height); ++h) {
82 for (w = 0; (w <
src_roi[0]->
width) && (w < dst_roi->width); w += 2) {
83 if ((cm->
determine(*yp++, *up, *vp) == what)) {
88 if ((cm->
determine(*yp++, *up++, *vp++) == what)) {
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const =0
Determine classification of YUV pixel.
virtual void apply()
Apply the filter.
FilterSegment(ColorModel *cm, color_t what)
Constructor.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned char * dst
Destination buffer.
ROI * dst_roi
Destination ROI.
unsigned int height
ROI height.
fawkes::upoint_t start
ROI start.
unsigned int line_step
line step
unsigned int width
ROI width.
unsigned int pixel_step
pixel step
unsigned int x
x coordinate
unsigned int y
y coordinate