Developer Reference

  • 2021
  • 03/26/2021
  • Public Content
Contents

Nearest Neighbor Interpolation

This is the fastest and least accurate interpolation mode. The pixel value in the destination image is set to the value of the source image pixel closest to the point
(
x
S
,
y
S
):
D
(
x
D
,
y
D
) =
S
(round(
x
S
), round(
y
S
)).
To use the nearest neighbor interpolation, set the
interpolation
parameter to
IPPI_INTER_NN
or use the functions with the
Nearest
suffix (pass
interpolation
=
ippNearest
to
GetSize
functions).

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.