Cirrus Logic CS485 Dokumentacja Strona 227

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 319
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 226
Geometric Transforms
11-5
11
Decimate
Decimates or shrinks an
image.
void iplDecimate(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
=1,
xSrc
=2,
yDst
=1,
ySrc
=2
decreases the image size in each dimension by
half.
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_INTER_SUPER Super-sampling.
Discussion
The function iplDecimate() decimates or shrinks 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.
Przeglądanie stron 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 318 319

Komentarze do niniejszej Instrukcji

Brak uwag