#load std load itk description "Gives information on the input image (pixel type, dimension, size, spacing)" author "laurent.guigues@creatis.insa-lyon.fr" category "application;image" new ImageReader reader # Make File name Using Black Box 'PrependDataPath' #---------------------------------------------------- #note : .bbs not mandatory include std/boxes/bbPrependDataPath new PrependDataPath pdp set pdp.In "thorax.hdr" #connect pdp.Out reader.In # Allow user to specify his own image, in GUI mode (-g option) #--------------------------------------------------------------- set reader.In "hola.mhd" input I reader.In "Input image file" new ImageProperties P connect reader.Out P.In print "Type = $P.TypeName$" print "Dimension = $P.Dimension$" print "Size = $P.Size$" print "Spacing = $P.Spacing$" #graph