category "demo"
// To show how easy it is to add smthing
+// =====================================
load wxvtk
include wx
new LayoutLine down
connect upright.Widget main.Widget1
-connect upleft.Widget main.Widget2
-connect down.Widget main.Widget3
+connect upleft.Widget main.Widget2
+connect down.Widget main.Widget3
# Here loads hola.mhd
+# -------------------
include vtk/boxes/bbLoadHola
new LoadHola reader
+
# uncomment next lines to have a file selector
+# --------------------------------------------
#new FileSelector openFileDialog
#new ImageReader reader
# connect openFileDialog.Out reader.In
+# uncomment next lines to use Gimmick
+# -----------------------------------
+#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
+
+# uncomment the following lines to read a 3D images stack
+# -------------------------------------------------------
+// To choose the directory
+#new DirectorySelector ds
+// To get the image names into a vector
+#new FilesFromDirectory fd
+// To read all the files, as a bbitk::ImagePointer
+#new ImageSeriesReader reader
+
+#print "Image properties : $reader.Out"
+
#Get image dimensions, ...
new ImageProperties mc
connect reader.Out mc.In