imresize in PIL / scipy.misc funktioniert nur für Uint8-Bilder? irgendwelche Alternativen?
Es scheint dasimresize
Implementiert inPIL
/scipy.misc
funktioniert nur bei uint8-Images
>>> import scipy.misc
>>> im = np.random.rand(100,200)
>>> print im.dtype
float64
>>> im2 = scipy.misc.imresize(im, 0.5)
>>> print im2.dtype
uint8
Ist da ein Weg dran vorbei? Ich würde gerne mit HDR-Bildern umgehen und muss mich daher mit @ befassfloat64
oderfloat32
Bilder. Vielen Dank