Converted image not displaying

Emmanuelle Gouillart emmanuelle.gouillart at nsup.org
Thu Jan 21 06:55:03 EST 2016


Did you try addind io.show() at the end of your script?

Cheers,
Emmanuelle

On Thu, Jan 21, 2016 at 03:46:10AM -0800, Abder-Rahman Ali wrote:
> I'm trying to convert a color image to a grayscale image, as follows:


> from skimage import io
> from skimage.color import rgb2gray
> img = io.imread('baboon.png')
> img_grayscale = rgb2gray(img)
> io.imshow(img_grayscale)


> The code works fine, but the image does not get displayed, why is that?


> Thanks.



More information about the scikit-image mailing list