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.
--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image...@googlegroups.com.
To post to this group, send email to scikit...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/2e444147-2d96-4100-87fd-e375fd737494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.