X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Transform3Ddicom_PKG%2Fbbs%2Fboxes%2FbbSubVolDicom.bbs;fp=bbtk_Transform3Ddicom_PKG%2Fbbs%2Fboxes%2FbbSubVolDicom.bbs;h=d460208a07e3c172e1832ea09cbb89f1e8815738;hb=916db8ea8376e6a88a74f2b76b24d6e746041217;hp=0000000000000000000000000000000000000000;hpb=3579beef5bd466705bc0431d7347d1150cdffe97;p=creaImageIO.git diff --git a/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbSubVolDicom.bbs b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbSubVolDicom.bbs new file mode 100644 index 0000000..d460208 --- /dev/null +++ b/bbtk_Transform3Ddicom_PKG/bbs/boxes/bbSubVolDicom.bbs @@ -0,0 +1,50 @@ + + +load Transform3Ddicom +load vtk +load std +load itk +load itkvtk + + +define SubVolumeDicom Transform3Ddicom + +description "Extract sub volume with dicom info" +author "davila.eduardo@creatis.univ-lyon1.fr" +category "complex box, 3D object creator" + + + +new MagicBox magicboxIPP +new MagicBox magicboxIOP +new MagicBox magicboxPixelSpacing +new MagicBox magicboxIndex + +new NewDicomImaPosPat ndipp + connect magicboxIndex.Out ndipp.Point + connect magicboxIPP.Out ndipp.IPP + connect magicboxIOP.Out ndipp.IOP + connect magicboxPixelSpacing.Out ndipp.PixelSpacing + + +new ImageRegion imageregion + connect magicboxIndex.Out imageregion.Index + +new ExtractImageFilter extractimagefilter + connect imageregion.Out extractimagefilter.Region + + +// ----Require inputs---- + input IPP magicboxIPP.In "Image Position Patient" + input OPP magicboxIOP.In "Image Orienation Patient" + input PixelSpacing magicboxPixelSpacing.In "Spacing of the image" + input Index magicboxIndex.In "Index of the subvolume" + input Size imageregion.Size "Size subvolume" + input In extractimagefilter.In "Image" + + +// ----output---- + output Out extractimagefilter.Out "sub image" + +endefine +