Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skimage: how to show image

I am novice at skimage and I try to show the image in my ipython notebook:\

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

But I see only the following string:

<matplotlib.image.AxesImage at 0x7f8c9c0cc6d8>

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

like image 752
Tehada Avatar asked Jul 27 '16 07:07

Tehada


People also ask

How do you display images on a Skimage?

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

Is scikit-image same as Skimage?

scikit-image (a.k.a. skimage ) is a collection of algorithms for image processing and computer vision.

What does IO Imread return?

io. imread() function to read a JPEG image entitled chair. jpg. Skimage reads the image, converts it from JPEG into a NumPy array, and returns the array; we save the array in a variable named image .


2 Answers

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

from skimage import data, io
from matplotlib import pyplot as plt


coins = data.coins()
io.imshow(coins)
plt.show()
like image 57
Eli Korvigo Avatar answered Sep 24 '22 06:09

Eli Korvigo


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

like image 39
BugKiller Avatar answered Sep 26 '22 06:09

BugKiller