SMIL  0.8
 All Classes Functions Variables Groups Pages
base_graph.py

1 from smilPython import *
2 
3 im1 = Image("http://cmm.ensmp.fr/~faessel/smil/images/mosaic.png")
4 im2 = Image(im1)
5 im3 = Image(im1)
6 imMos = Image(im1, "UINT16")
7 imArea = Image(imMos)
8 imSeg = Image(imMos)
9 
10 label(im1, imMos)
11 labelWithArea(im1, imArea)
12 
13 g = mosaicToGraph(imMos, imArea)
14 
15 drawGraph(imMos, g, imSeg)
16 imMos.getViewer().drawOverlay(imSeg)
17 
18 g.removeNodeEdges(3)
19 graphToMosaic(imMos, g, imSeg)
20 
21 im1.show()
22 imMos.showLabel()
23 imSeg.showLabel()