1from smilPython import *
2
3im1 = Image("https://smil.cmm.minesparis.psl.eu/images/barbara.png")
4im2 = Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
5im3 = Image(im1)
6
7im1.show()
8im2.show()
9im3.show()
10
11
12crop(im1, 256, 0, 256, 256, im3)
13
14
15copy(im2, im1, 0, 256)
16
17
18copy(im1, 256, 0, 128, 128, im2, 128, 128)
19
20copy(im1, 256, 0, im2, 128, 128)
21
22
23im3D = Image(im2.getWidth(), im2.getHeight(), 3)
24im3D << 0
25copy(im1, 0, 256, im3D)
26copy(im3, im3D, 0, 0, 2)
27close(im3D, im3D, cbSE())
28im3D.show()