2.1.1   Interpolation Methods for Image Transformations

Table 2.1 lists the interpolation methods that are provided by HALCON operators that perform image transformations. Additionally, the characteristics of each interpolation method with respect to quality and speed as well as its recommended usage are stated.


Interpolation method Quality Runtime
(relative to nearest_neighbor)
Recommended usage

nearest_neighbor low 1 Only for time-critical applications

bilinear high (for upscaling) 3 If downscaling must not be slower than upscaling

constant enhanced for downscaling 3 (upscaling)
10 (downscaling)
If the image quality should be consistent for downscaled and upscaled images

weighted best for downscaling 3 (upscaling)
20 (downscaling)
If the image quality of downscaled images is critical for the application

bicubic very high (for upscaling) 6 If the image quality of upscaled images is critical for the application

Table 2.1: Interpolation methods for image transformations and their characteristics with respect to quality, runtime, and recommended usage. Note that the runtime factors may vary depending on the downscaling factor and on your hardware.