Specifications

Intel
®
Image Processing Library Reference Manual
11-16
11
Shear
Performs a shear of
the source image.
void iplShear(IplImage*
srcImage
, IplImage*
dstImage
, double
xShear
,
double
yShear
, double
xShift
, double
yShift
, int
interpolate
);
srcImage
Thesourceimage.
dstImage
The resultant image.
xShear, yShear
The shear coefficients.
xShift, yShift
Additional shift values for the x and y directions.
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).
Discussion
The function iplShear() performs a shear of the source image according
to the following formulas:
x = x +
xShear
·y +
xShift
y = y +
yShear
·x +
yShift
where x and y denote the original pixel coordinates; x and y denote the
pixel coordinates in the sheared image. This shear transform is a special
case of affine transform performed by
iplWarpAffine (see below).
The interpolation specified by
interpolate
is used for resampling the
input image.