1import smilPython as sp
2
3
4se = sp.SquSE()
5
6
7imIn = sp.Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
8
9imOut = sp.Image(imIn)
10
11
12imIn.show("Input image")
13imOut.show()
14
15input("Hit the enter key to continue")
16
17for i in range(0,8):
18 s = "Open SE({:})".format(i)
19 print(s)
20 imOut.setName(s)
21
22 r = sp.open(imIn, imOut, se(i))
23
24 r = sp.write(imOut, 'res-tmp-{:03d}'.format(i))
25 input("Hit the enter key to continue")
26
27input("Hit the enter key to exit")
28