Search code examples
pythonnumpyscipyimage-resizing

Is there imresize analog that can work with more than 8 bit colors in Python?


I want to resize image that's represented by uint16 values in each color channel. If I use imresize it converts data to uint8 values. How can I preserve uint16 and resize image?

Also I would like to use interp='lanczos' resizing method - to not just shrink data but preserve details. Is there imresize analog that can work with more than 8 bit colors in Python?


Solution

  • Use OpenCV resize function: OpenCV Documenation instead of SkiPy imresize.