1 description "Example of posbile Recalage implementation"
2 author "jn.trillos44@uniandes.edu.co"
14 //File selection and file reader for the first image
16 new FileSelector openFileDialog
17 set openFileDialog.Wildcard "(*.mhd)|*.mhd"
18 new MetaImageReader reader
19 connect openFileDialog.Out reader.In
21 //File selection and file reader for the second image
23 new FileSelector openFileDialog2
24 set openFileDialog2.Wildcard "(*.mhd)|*.mhd"
25 new MetaImageReader reader2
26 connect openFileDialog2.Out reader2.In
28 //Viewer NV and ShowPoints for the first image
31 connect reader.Out viewer.In
32 set viewer.nTypeView "5 1 2 0"
34 new ShowNPoints showNpoints
35 connect reader.Out showNpoints.Image
36 connect viewer.Renderer1 showNpoints.Renderer
37 connect viewer.Point showNpoints.In
38 connect viewer.BoxChange showNpoints.BoxExecute
39 set showNpoints.Radio 10
41 /////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////
45 new CalculateVectorBox vector1
46 connect showNpoints.lstPointsX vector1.PointsX1
47 connect showNpoints.BoxChange vector1.BoxExecute
49 ////////////////////////////////////////////////////
51 //Viewer NV and ShowPoints for the second image
54 connect reader2.Out viewer2.In
55 set viewer2.nTypeView "5 1 2 0"
57 new ShowNPoints showNpoints2
58 connect reader2.Out showNpoints2.Image
59 connect viewer2.Renderer1 showNpoints2.Renderer
60 connect viewer2.Point showNpoints2.In
61 connect viewer2.BoxChange showNpoints2.BoxExecute
62 set showNpoints2.Radio 10
64 //Tab for the first image
67 set tab1.Orientation H
68 connect showNpoints.Widget tab1.Widget1
69 connect viewer.Widget tab1.Widget2
71 //Tab for the second image
74 set tab2.Orientation H
75 connect showNpoints2.Widget tab2.Widget1
76 connect viewer2.Widget tab2.Widget2
81 set main.Orientation H
82 connect tab1.Widget main.Widget1
83 connect tab2.Widget main.Widget2