Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of 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

(xS,yS):D(xD,yD) = S(round(xS), round(yS)).

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).