Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for img in files:
  2. if img.endswith(".tif"):
  3. image = io.imread(img)
  4. image = skimage.img_as_ubyte(image)
  5. thresh=threshold_otsu(image)
  6. binary = image > thresh
  7. masked = binary*image
  8. cat = np.concatenate(("ALL THE IMAGES", axis =0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement