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
Just add matplotlib. pyplot. show() after the io. imshow(coins) line.
scikit-image (a.k.a. skimage ) is a collection of algorithms for image processing and computer vision.
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 .
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()
To display pending images, you need io.show()
following io.imshow(coins)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With