1from smilPython import *
2
3
4im1 = Image("https://smil.cmm.minesparis.psl.eu/images/arearea.png")
5im1.show()
6
7
8im2 = Image()
9copyChannel(im1, 1, im2)
10im2.show()
11
12
13im3 = Image()
14splitChannels(im1, im3)
15im3.show()
16
17
18im4 = Image(im3)
19dilate(im3, im4)
20im4.show()
21
22
23im5 = Image(im1)
24mergeChannels(im4, im5)
25im5.show()