6 ms·
It is a very common, and often overlooked issue in image processing. Bilinear is widely used, and not particularly good. For large factor downscaling it is remi
by NohatCoder 6y ago
It is a very common, and often overlooked issue in image processing. Bilinear is widely used, and not particularly good. For large factor downscaling it is reminiscent of nearest pixel.
- bonoboTP 6y agoYeah, the default implementation should check the scaling factor and use AREA interpolation when downscaling and bilinear for upscaling.
- enriquto 6y ago> It is a very common (...) Bilinear interpolation is perfectly acceptable for zooming-in an image (making it larger by adding new pixel values). If you want to zoom-out, you have can still use bilinear interpolation, but of course you have to filter the image data beforehand to avoid aliasing.
- NohatCoder 6y agoMost often scaling and filtering is an integrated process, when one says bilinear it is usually implied that it is combined with nothing else.
- Sesse__ 6y agoIndeed. If you filter the image data, you should _not_ do bilinear on top of that, since bilinear is a box filter, so you'd soften the image for no good reason.
- enriquto 6y agoYou still need some kind of interpolation if the zoom factor is non-integer, and bilinear is a good choice in that case.