27 #include <fvfilters/segment_scanline.h> 29 #include <fvmodels/color/colormodel.h> 30 #include <fvmodels/scanlines/scanlinemodel.h> 32 #include <fvutils/color/yuv.h> 56 :
Filter(
"FilterScanlineSegmentation")
66 unsigned int x = 0, y = 0;
67 unsigned char py = 0, pu = 0, pv = 0;
68 register unsigned char *dyp, *dup, *dvp;
73 while (! slm->finished()) {
80 YUV422_PLANAR_YUV(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height, x, y, py, pu, pv);
FilterScanlineSegmentation(ColorModel *cm, ScanlineModel *slm)
Constructor.
Scanline model interface.
unsigned int x
x coordinate
unsigned int image_width
width of image that contains this ROI
virtual void apply()
Apply the filter.
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 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.