# uncomment next lines to have a file selector
# --------------------------------------------
-#new FileSelector openFileDialog
-#new ImageReader reader
-# connect openFileDialog.Out reader.In
+/*
+new FileSelector openFileDialog
+new ImageReader reader
+ connect openFileDialog.Out reader.In
+*/
# uncomment next lines to use Gimmick
# -----------------------------------
-#load creaImageIO
-#new Gimmick reader
+/*
+load creaImageIO
+new Gimmick reader
+*/
# uncomment next lines to Read a MHD file (and nothing else !)
# ------------------------------------------------------------
-#new FileSelector openFileDialog
-#new MetaImageReader reader
-# connect openFileDialog.Out reader.In
+/*
+new FileSelector openFileDialog
+new MetaImageReader reader
+ connect openFileDialog.Out reader.In
+*/
# uncomment the following lines to read a 3D images stack
# (only if file name order is meaningfull)
connect ds.Out fd.In
set fd.Recursive false
// list of files as imput
+#print "Files found in $ds.Out$\n
connect fd.Out reader.FileNames
*/
+
+// We need that to set Sliders sizes
+
#Get image dimensions, ...
new ImageProperties mc
connect reader.Out mc.In
+#print "Image properties : $reader.Out"
+
#Get number of column (X)
new GetVectorIntElement gveX
connect mc.Size gveX.In
set viewerUL.SliderOrientation H
set viewerUL.SliderTitle "Planes YZ"
-
// For Y axis
new SimpleSlicer viewerUR
connect reader.Out viewerUR.In
new ImagePlanes planes
connect reader.Out planes.In
-
+
new Viewer3D viewer
connect planes.PlaneX viewer.Obs1
connect planes.PlaneY viewer.Obs2
# uncomment next lines to have a file selector
# --------------------------------------------
-#new FileSelector openFileDialog
-#new ImageReader reader
-# connect openFileDialog.Out reader.In
+/*
+new FileSelector openFileDialog
+new ImageReader reader
+ connect openFileDialog.Out reader.In
+*/
# uncomment next lines to use Gimmick
# -----------------------------------
-#load creaImageIO
-#new Gimmick reader
+/*
+load creaImageIO
+new Gimmick reader
+*/
# uncomment next lines to Read a MHD file (and nothing else !)
# ------------------------------------------------------------
-#new FileSelector openFileDialog
-#new MetaImageReader reader
-# connect openFileDialog.Out reader.In
+/*
+new FileSelector openFileDialog
+new MetaImageReader reader
+ connect openFileDialog.Out reader.In
+*/
# uncomment the following lines to read a 3D images stack
# (only if file name order is meaningfull)
new FilesFromDirectory fd
// To read all the files, as a bbitk::ImagePointer
new ImageSeriesReader reader
+// user choosen directory as input
connect ds.Out fd.In
set fd.Recursive false
-print "Files found in $ds.Out$\n
+// list of files as imput
+#print "Files found in $ds.Out$\n
connect fd.Out reader.FileNames
*/
//set reader.YSpacing 23.4
//set reader.ZSpacing 35
-//print "Image properties : $reader.Out"
+#print "Image properties : $reader.Out"
//For 3D Viewer
new ImagePlanes planes
connect reader.Out planes.In
-
+
new Viewer3D viewer
connect planes.PlaneX viewer.Obs1
connect planes.PlaneY viewer.Obs2