Draft 01

1 import numpy as np
2 
3 img = adreadgray('/awmedia/www/media/Attachments/iamxt-tutorial/interactive_maxtree01/Potatoes.tif')
4 t = 50
5 adshow(img,"Original image")
6 adshow(img>=t,"Upper threshold")
7 adshow(img<t,"Lower threshold")

Original image

Upper threshold

Lower threshold