10 define SubVolumeDicom Transform3Ddicom
12 description "Extract sub volume with dicom info"
13 author "davila.eduardo@creatis.univ-lyon1.fr"
14 category "complex box, 3D object creator"
18 new MagicBox magicboxIPP
19 new MagicBox magicboxIOP
20 new MagicBox magicboxPixelSpacing
21 new MagicBox magicboxIndex
23 new NewDicomImaPosPat ndipp
24 connect magicboxIndex.Out ndipp.Point
25 connect magicboxIPP.Out ndipp.IPP
26 connect magicboxIOP.Out ndipp.IOP
27 connect magicboxPixelSpacing.Out ndipp.PixelSpacing
30 new ImageRegion imageregion
31 connect magicboxIndex.Out imageregion.Index
33 new ExtractImageFilter extractimagefilter
34 connect imageregion.Out extractimagefilter.Region
37 // ----Require inputs----
38 input IPP magicboxIPP.In "Image Position Patient"
39 input OPP magicboxIOP.In "Image Orienation Patient"
40 input PixelSpacing magicboxPixelSpacing.In "Spacing of the image"
41 input Index magicboxIndex.In "Index of the subvolume"
42 input Size imageregion.Size "Size subvolume"
43 input In extractimagefilter.In "Image"
47 output Out extractimagefilter.Out "sub image"