]> Creatis software - bbtk.git/blobdiff - packages/demo/bbs/appli/demoViewing3.bbs
Comments
[bbtk.git] / packages / demo / bbs / appli / demoViewing3.bbs
index b3555c84c0a06d60e47118b60545978ceb7e4a20..204c4445b3087630546d415e78d45d0a3e87785c 100644 (file)
@@ -30,20 +30,26 @@ new LoadHola reader
 
 # 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)
@@ -55,9 +61,11 @@ new DirectorySelector ds
 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
 */
 
@@ -66,13 +74,13 @@ 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