Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for img in files:
- if img.endswith(".tif"):
- image = io.imread(img)
- image = skimage.img_as_ubyte(image)
- thresh=threshold_otsu(image)
- binary = image > thresh
- masked = binary*image
- cat = np.concatenate(("ALL THE IMAGES", axis =0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement