Specifications

Intel
®
Image Processing Library Reference Manual
11-20
11
WarpBilinear
WarpBilinearQ
Warps an image by a
bilinear transform.
void iplWarpBilinear(IplImage*
srcImage
, IplImage*
dstImage
,
const double
coeffs
[2][4], int
warpFlag
, int
interpolate
);
void iplWarpBilinearQ(IplImage*
srcImage
, IplImage*
dstImage
,
const double
quad
[4][2], int
warpFlag
, int
interpolate
);
srcImage
Thesourceimage.
dstImage
The resultant image.
coeffs
Array with bilinear transform coefficients.
warpFlag
A flag: either IPL_R_TO_Q (ROI to quadrangle) or
IPL_Q_TO_R (quadrangle to ROI). See Discussion.
interpolate
The type of interpolation to perform for resampling.
Can be one of the following:
IPL_INTER_NN Nearest neighbor.
IPL_INTER_LINEAR Linear interpolation.
IPL_INTER_CUBIC Cubic interpolation.
+IPL_SMOOTH_EDGE Smooth edges of an image.
Can be added to interpolation
by using bitwise logical OR
(see Appendix B for details).
quad
Array of coordinates of the reference quadrangle
vertices. If
warpFlag
is IPL_R_TO_Q,the
rectangular ROI of the source image is mapped to
the reference quadrangle. If
warpFlag
is
IPL_Q_TO_R, the source quadrangle is mapped to
the rectangular ROI of the destination image.