The key to the nearest interpolator is very simple. First, you need to use the floating-point coordinates obtained by inverse conversion and round the floating-point coordinates to obtain the integer coordinates, which correspond to the pixel value of the target pixel. The pixel value corresponding to the upper-left corner of the floating-point coordinate is the desired pixel value [4]. You can see that the nearest adjacent interpolation is easy to understand and the results are more convenient, but the image quality is not very high.
正在翻译中..