1 description "Reads and image file / stack of image files, writes it as a MHD file"
2 author "jpr@creatis.insa-lyon.fr"
3 category "tool, read/write"
15 # use Gimmick to select
16 # ----------------------
22 connect cb1.Widget main.Widget1
23 set cb1.Label "1) Select File"
24 set cb1.WinDialog true
26 connect cb1.BoxChange reader.BoxExecute
29 connect cb.Widget main.Widget2
30 set cb.Label "2) Write (no '.mhd' extention needed!"
33 # Choose where you want to write
34 # ------------------------------
35 new FileSelector fileDialog
36 set fileDialog.OpenSave Save
37 set fileDialog.Wildcard "*.mhd"
40 connect fileDialog.Out mfn.File
46 new MetaImageWriter writer
47 connect reader.Out writer.In
48 connect mfn.Out writer.Filename
49 connect cb.BoxChange writer.BoxExecute