1from smilPython import *
2
3
4im1 = Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
5im1.show()
6
7
8im2 = Image(im1)
9threshold(im1, 100, 255, im2)
10im2.show()
11
12
13im3 = Image(im1)
14
15otsuThreshold(im1, im3, 2)
16
17im3.showLabel()