24 #include <fvfilters/unwarp.h> 26 #include <fvmodels/mirror/mirrormodel.h> 27 #include <fvutils/color/yuv.h> 65 unsigned char *ldyp = dyp;
66 unsigned char *ldup = dup;
67 unsigned char *ldvp = dvp;
69 unsigned int warp1_x = 0, warp1_y = 0,
70 warp2_x = 0, warp2_y = 0;
72 unsigned char py1=0, py2=0, pu1=0, pu2=0, pv1=0, pv2=0;
81 if ( (warp1_x <
src_roi[0]->image_width) &&
82 (warp1_y <
src_roi[0]->image_height) ) {
94 if ( (warp2_x <
src_roi[0]->image_width) &&
95 (warp2_y <
src_roi[0]->image_height) ) {
102 *dup = (*dup + pu2) / 2;
103 *dvp = (*dvp + pv2) / 2;
115 if ( (warp2_x <
src_roi[0]->image_width) &&
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
unsigned int image_width
width of image that contains this ROI
FilterUnwarp(MirrorModel *mm)
Constructor.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned int image_height
height of image that contains this ROI
virtual void apply()
Apply the filter.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
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.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.