albumentations icon indicating copy to clipboard operation
albumentations copied to clipboard

Resize with Pillow to avoid downsampling artifacts

Open Dipet opened this issue 3 years ago • 2 comments

OpenCV doesn't use antialiasing when downsampling images. It would be nice if we will add an option with support for resizing with Pillow. More info:

Dipet avatar Oct 05 '21 08:10 Dipet

There is a separate GitHub repo dedicated to this problem (and working solution!): https://github.com/assafshocher/ResizeRight

zakajd avatar Nov 18 '21 20:11 zakajd

Yes, but still the results are different between PILLOW, OpenCV and ResizeRight. If it ok I'll work on an update to let the resize using PILLOW or OpenCV based on a parameter

fabiofumarola avatar May 18 '22 14:05 fabiofumarola