#new FileSelector openFileDialog
#new ImageReader reader
# connect openFileDialog.Out reader.In
-
-
+
+
#Get image dimensions, ...
new ImageProperties mc
connect reader.Out mc.In
new GetVectorIntElement gveX
connect mc.Size gveX.In
set gveX.I 0
-
+
#Get number of rows (Y)
new GetVectorIntElement gveY
connect mc.Size gveY.In
set gveY.I 1
-
+
#Get number of planes (Z)
new GetVectorIntElement gveZ
connect mc.Size gveZ.In
#Compute the number of the 'middle' slice on X axis
new Div div0
connect gveX.Out div0.In1
- set div0.In2 2
+ set div0.In2 2
#Compute the number of the 'middle' slice on Y axis
new Div div1
connect gveY.Out div1.In1
- set div1.In2 2
+ set div1.In2 2
#Compute the number of the 'middle' slice on Z axis
new Div div2
connect gveZ.Out div2.In1
- set div2.In2 2
-
-
+ set div2.In2 2
+
+
// For X axis
new SimpleSlicer viewerUL
connect reader.Out viewerUL.In
set viewerUL.SliderReactiveOnTrack 1
set viewerUL.Orientation 0
set viewerUL.SliderOrientation H
- set viewerUL.SliderTitle "Planes YZ"
+ set viewerUL.SliderTitle "Planes YZ"
// For Y axis
set viewerUR.SliderReactiveOnTrack 1
set viewerUR.SliderOrientation H
set viewerUR.Orientation 1
- set viewerUR.SliderTitle "Planes XZ"
-
+ set viewerUR.SliderTitle "Planes XZ"
+
// For Z axis
new SimpleSlicer viewerTD
connect reader.Out viewerTD.In
print "Image properties : $reader.Out"
-
//For 3D Viewer
connect planes.PlaneZ viewer.Obs3
connect viewer.Widget main.Widget4
-
-
+
// For X axis
// ----------
new Viewer2D viewerUL
// print "planes.BoxChange $planes.BoxChange"
// print "viewer.BoxChange $viewer.BoxChange"
-
+
connect planes.BoxChange viewerUL.BoxExecute
print "===============planes.ImageX $planes.ImageX"
set viewerUR.Slice 0
connect planes.BoxChange viewerUR.BoxExecute
- print "===============planes.ImageY $planes.ImageY"
-
+ print "===============planes.ImageY $planes.ImageY"
+
// For Z axis
// ----------
new Viewer2D viewerDL
connect planes.BoxChange viewerDL.BoxExecute
print "===============planes.ImageZ $planes.ImageZ"
-
+
set main.WinTitle "demoViewing3"
exec main