include vtk
include wx
load itkvtk
+load gdcmvtk
new LayoutX4 main
/*
new FileSelector openFileDialog
new ImageReader reader
- connect openFileDialog.Out reader.In
+ connect openFileDialog.Out reader.In
*/
# uncomment next lines to use Gimmick
// user choosen directory as input
connect ds.Out fd.In
set fd.Recursive false
-// list of files as imput
+// list of files as input
#print "Files found in $ds.Out$\n
-connect fd.Out reader.FileNames
+connect fd.Out reader.FileNames
*/
+# uncomment the following lines to read a 3D images stack
+# (if the directory contains a 'XCoherent" Serie)
+# -------------------------------------------------------
+/*
+// To choose the directory
+new DirectorySelector ds
+// To get the image names into a vector
+new FilesFromDirectory fd
+// user choosen directory as input
+connect ds.Out fd.In
+// order the files, computes an accurate ZSpacing
+new GetXCoherentInfoGdcmReader reader
+connect fd.Out reader.In
+*/
//set reader.XSpacing 23.4
//set reader.YSpacing 23.4
//For 3D Viewer
new ImagePlanes planes
- connect reader.Out planes.In
+ connect reader.Out planes.In
new Viewer3D viewer
- connect planes.PlaneX viewer.Obs1
- connect planes.PlaneY viewer.Obs2
- connect planes.PlaneZ viewer.Obs3
+ connect planes.PlaneX viewer.Obs1
+ connect planes.PlaneY viewer.Obs2
+ connect planes.PlaneZ viewer.Obs3
- connect viewer.Widget main.Widget4
+ connect viewer.Widget main.Widget4
// For X axis
// ----------
connect viewerUR.Widget upright.Widget1
# contains only one slice
set viewerUR.Slice 0
- connect planes.BoxChange viewerUR.BoxExecute
+ connect planes.BoxChange viewerUR.BoxExecute
print "===============planes.ImageY $planes.ImageY"
set viewerDL.Slice 0
connect planes.BoxChange viewerDL.BoxExecute
- print "===============planes.ImageZ $planes.ImageZ"
-
+ print "===============planes.ImageZ $planes.ImageZ"
+
set main.WinTitle "demoViewing3"
exec main