Skimage: how to show image

I am new to skimage and I am trying to show an image in my ipython laptop: \

from skimage import data, io coins = data.coins() io.imshow(coins) 

But I see only the following line:

 <matplotlib.image.AxesImage at 0x7f8c9c0cc6d8> 

Can anyboby explain how to show the image right below the code, like here: Correct output

+11
source share
3 answers

Just add matplotlib.pyplot.show() after the line io.imshow(coins) .

 from skimage import data, io from matplotlib import pyplot as plt coins = data.coins() io.imshow(coins) plt.show() 
+18
source

To display pending images, you need io.show() follow io.imshow(coins)

+4
source

images using skikit-image, matplotlib, SciPy, NumPy library

 import os # importing io from skimage import skimage from skimage import io # way to load image from file file = os.path.join(skimage.data_dir, 'E:/img.jpg') myimg = io.imread(file) # way to show the input image io.imshow(myimg) io.show() 
0
source

All Articles