Specifications

Intel
®
Image Processing Library Reference Manual
11-24
11
WarpPerspective
WarpPerspectiveQ
Warps an image by a
perspective transform.
void iplWarpPerspective(IplImage*
srcImage
, IplImage*
dstImage
,
const double
coeffs
[3][3], int
warpFlag
, int
interpolate
);
void iplWarpPerspectiveQ(IplImage*
srcImage
, IplImage*
dstImage
,
const double
quad
[4][2], int
warpFlag
, int
interpolate
);
srcImage
Thesourceimage.
dstImage
The resultant image.
coeffs
Array with perspective 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.