Specifications
Intel
®
Image Processing Library Reference Manual
11-4
11
Zoom
Zooms or expands an
image.
void iplZoom(IplImage*
srcImage
, IplImage*
dstImage
, int
xDst
, int
xSrc
, int
yDst
, int
ySrc
, int
interpolate
);
srcImage
Thesourceimage.
dstImage
The resultant image.
xDst,xSrc,yDst,ySrc
Positive integers specifying the fractions
xDst/xSrc
≥ 1and
yDst/ySrc
≥ 1 - the factors
by which the x and y dimensions of the image’s
ROI are changed. For example, setting
xDst
=2,
xSrc
=1,
yDst
=2,
ySrc
=1
doubles the image size in each dimension to
increase the image area by a factor of four.
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.
Discussion
The function iplZoom() zooms or expands the source image
srcImage
by
xDst/xSrc
in the x direction and
yDst/ySrc
in the y direction. The
interpolation specified by
interpolate
is used for resampling the input
image.