27#include <fvfilters/segment_scanline.h>
28#include <fvmodels/color/colormodel.h>
29#include <fvmodels/scanlines/scanlinemodel.h>
30#include <fvutils/color/yuv.h>
51:
Filter(
"FilterScanlineSegmentation")
60 unsigned int x = 0, y = 0;
61 unsigned char py = 0, pu = 0, pv = 0;
62 unsigned char *dyp, *dup, *dvp;
66 while (!slm->finished()) {
71 YUV422_PLANAR_YUV(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height, x, y, py, pu, pv);
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const =0
Determine classification of YUV pixel.
FilterScanlineSegmentation(ColorModel *cm, ScanlineModel *slm)
Constructor.
virtual void apply()
Apply the filter.
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 line_step
line step
unsigned int image_width
width of image that contains this ROI
unsigned int pixel_step
pixel step
unsigned int image_height
height of image that contains this ROI
Scanline model interface.
unsigned int x
x coordinate