# connect openFileDialog.Out reader.In
# uncomment the following lines to read a 3D images stack
+# (only if file name order is meaningfull)
# -------------------------------------------------------
+/*
// To choose the directory
-#new DirectorySelector ds
+new DirectorySelector ds
// To get the image names into a vector
-#new FilesFromDirectory fd
+new FilesFromDirectory fd
// To read all the files, as a bbitk::ImagePointer
-#new ImageSeriesReader reader
+new ImageSeriesReader reader
// user choosen directory as input
-#connect ds.Out fd.In
-#set fd.Recursive false
+connect ds.Out fd.In
+set fd.Recursive false
// list of files as imput
-#connect fd.Out reader.FileNames
-
+connect fd.Out reader.FileNames
+*/
#Get image dimensions, ...
new ImageProperties mc
# Here loads hola.mhd
# -------------------
-#include vtk/boxes/bbLoadHola
-#new LoadHola reader
+include vtk/boxes/bbLoadHola
+new LoadHola reader
# uncomment next lines to have a file selector
# --------------------------------------------
# connect openFileDialog.Out reader.In
# uncomment the following lines to read a 3D images stack
+# (only if file name order is meaningfull)
# -------------------------------------------------------
+/*
// To choose the directory
-#new DirectorySelector ds
+new DirectorySelector ds
// To get the image names into a vector
-#new FilesFromDirectory fd
+new FilesFromDirectory fd
// To read all the files, as a bbitk::ImagePointer
-#new ImageSeriesReader reader
+new ImageSeriesReader reader
connect ds.Out fd.In
set fd.Recursive false
-print "Files found in $ds.Out$\n"
-print "-Not recursive----------------------------"
-//print " : $fd.Out$\n"
+print "Files found in $ds.Out$\n
+*/
-set reader.XSpacing 23.4
-set reader.YSpacing 23.4
-set reader.ZSpacing 35
+//set reader.XSpacing 23.4
+//set reader.YSpacing 23.4
+//set reader.ZSpacing 35
connect fd.Out reader.FileNames