Specifications
Intel
®
Image Processing Library Reference Manual
11-8
11
iplZoomFit
iplDecimateFit
iplResizeFit
Macro definitions that change
the image size using the images’
dimensions as scaling factors.
iplZoomFit(
SRC, DST, INTER
);
iplDecimateFit(
SRC, DST, INTER
);
iplResizeFit(
SRC, DST, INTER
);
SRC
Thesourceimage.
DST
The destination image.
INTER
The type of interpolation to perform for
resampling the source image.
Discussion
Use macro definitions iplZoomFit(), iplDecimateFit(),
iplResizeFit()
to resize a source image ROI so that its dimensions fit
into the destination ROI (or the whole image) size. These macros use
dimensions of source and destination images’ ROIs (or the sizes of whole
images) to determine the respective scaling factors in x-andy- directions.
Note that
SRC
and
DST
pointers to IplImage structures are used but not
checked in the macros. Thus, it is essential that your application checks
that these pointers specify valid source and destination images.