24 #include <fvfilters/unwarp.h>
25 #include <fvmodels/mirror/mirrormodel.h>
26 #include <fvutils/color/yuv.h>
30 namespace firevision {
62 unsigned char *ldyp = dyp;
63 unsigned char *ldup = dup;
64 unsigned char *ldvp = dvp;
66 unsigned int warp1_x = 0, warp1_y = 0, warp2_x = 0, warp2_y = 0;
68 unsigned char py1 = 0, py2 = 0, pu1 = 0, pu2 = 0, pv1 = 0, pv2 = 0;
78 YUV422_PLANAR_YUV(
src[0],
91 if ((warp2_x <
src_roi[0]->image_width) && (warp2_y <
src_roi[0]->image_height)) {
92 YUV422_PLANAR_YUV(
src[0],
102 *dup = (*dup + pu2) / 2;
103 *dvp = (*dvp + pv2) / 2;
115 YUV422_PLANAR_YUV(
src[0],
FilterUnwarp(MirrorModel *mm)
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.
virtual void unwarp2warp(unsigned int unwarp_x, unsigned int unwarp_y, unsigned int *warp_x, unsigned int *warp_y)=0
Transform unwarped to warped point.
unsigned int height
ROI height.
fawkes::upoint_t start
ROI start.
unsigned int line_step
line step
unsigned int width
ROI width.
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
unsigned int x
x coordinate
unsigned int y
y coordinate