SHARE
TWEET

Untitled

a guest Jan 12th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from matplotlib import pyplot as plt
  2. from skimage import data
  3. from skimage.feature import blob_dog, blob_log, blob_doh
  4. from math import sqrt
  5. from skimage.color import rgb2gray
  6. import glob
  7. from skimage.io import imread
  8.  
  9. example_file=glob.glob(r"/home/snowbell/sample.jpg")[0]
  10. im=imread(example_file, as_grey=True)
  11. plt.imshow(im, cmap=cm.gray)
  12. plt.show()
  13.    
  14. Traceback (most recent call last):
  15.   File "test.py", line 11, in <module>
  16.     plt.imshow(im, cmap=cm.gray)
  17. NameError: name 'cm' is not defined
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top