SMIL 1.1.1
Loading...
Searching...
No Matches
base_graph.py
1from smilPython import *
2
3im1 = Image("https://smil.cmm.minesparis.psl.eu/images/mosaic.png")
4im2 = Image(im1)
5im3 = Image(im1)
6imMos = Image(im1, "UINT16")
7imArea = Image(imMos)
8imSeg = Image(imMos)
9
10label(im1, imMos)
11labelWithArea(im1, imArea)
12
13g = mosaicToGraph(imMos, imArea)
14
15drawGraph(imMos, g, imSeg)
16imMos.getViewer().drawOverlay(imSeg)
17
18g.removeNodeEdges(3)
19graphToMosaic(imMos, g, imSeg)
20
21im1.show()
22imMos.showLabel()
23imSeg.showLabel()