include std/boxes/bbPrependDataPath
new PrependDataPath pdp
set pdp.In "thorax.hdr"
-#connect pdp.Out reader.Filename
+#connect pdp.Out reader.In
# Allow user to specify his own image, in GUI mode (-g option)
#---------------------------------------------------------------
-set reader.Filename "thorax.hdr"
-input In reader.Filename "Input file"
+set reader.In "hola.mhd"
+input I reader.In "Input image file"
new ImageProperties P
connect reader.Out P.In
-print "Type = $P.TypeName$\n"
-print "Dimension = $P.Dimension$\n"
-print "Size = $P.Size$\n"
-print "Spacing = $P.Spacing$\n"
+print "Type = $P.TypeName$"
+print "Dimension = $P.Dimension$"
+print "Size = $P.Size$"
+print "Spacing = $P.Spacing$"
#graph