1import smilPython as sp
2import time
3
4
5se = sp.SquSE()
6
7
8imIn = sp.Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
9
10imOut = sp.Image(imIn)
11
12
13imIn.show("Input image")
14imOut.show()
15
16input("Hit the enter key to begin")
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
25 sp.Gui.processEvents()
26
27 time.sleep(0.4)
28
29input("Hit the enter key to exit")
30