imresize in PIL/scipy.misc only works for uint8 images? any alternatives?

前端 未结 2 1934
不思量自难忘°
不思量自难忘° 2021-02-10 04:59

It seems the imresize implemented in PIL/scipy.misc only works for uint8 images

>>> import scipy.misc
>>>         


        
2条回答
  •  深忆病人
    2021-02-10 05:19

    you could also use the mode='F' option in the imresize function

    imresize(image, factor, mode='F')
    

提交回复
热议问题