[Numpy-discussion] So I found a bug...

Sturla Molden sturla.molden at gmail.com
Fri Feb 27 18:19:35 EST 2015


On 28/02/15 00:04, Robert Kern wrote:

> When plt.imshow() is given floating point RGB images, it assumes that
> each channel is normalized to 1. You are mixing a 0..255 image with a
> 0..1 image. Divide `lenna` by 255.0 before you stack it with `_dct`. Or
> multiply `_dct` by 255 and cast it to uint8.

Right. Thanks.

Since it's past midnight this probably means I should not touch the 
computer until my brain has rebooted.







More information about the NumPy-Discussion mailing list