X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00302_Filter.bbs;fp=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00302_Filter.bbs;h=33cc851c13d33028c8b2cca9d281c4e75e433d40;hb=380ac24f1bd5ac018b069d25147f2a626739e494;hp=0000000000000000000000000000000000000000;hpb=e22166cdf8719072962316960de1bf9f4565e62d;p=creaMiniTools.git diff --git a/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs new file mode 100644 index 0000000..33cc851 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs @@ -0,0 +1,150 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00302_Filter.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaVtk +include std +include wx +include creaMaracasVisu +include vtk + +author "Author ??" +description "Description ??" +category "" + +new creaVtk:OutputWindow Box00 + +new std:ConcatStrings Box01 + +new std:ConcatStrings Box02 + +new std:ConcatStrings Box03 + +new wx:OutputText Box05 + +new wx:OutputText Box06 + +new wx:LayoutLine Box07 + +new wx:LayoutSplit Box08 + set Box08.Orientation "H" + set Box08.WinTitle "00302_Filter.bbs" + +new creaMaracasVisu:ViewerNV Box09 + +new vtk:MetaImageReader Box10 + +new wx:LayoutTab Box11 + +new creaMaracasVisu:ViewerNV Box12 + +new creaVtk:ImageThreshold Box13 + set Box13.InValue "255" + set Box13.Lower "134" + set Box13.OutValue "0" + set Box13.Upper "10000" + +new std:SplitFilePathVector Box14 + +new std:ConcatStrings Box15 + set Box15.In1 "mkdir -p " + +new wx:OutputText Box16 + +new std:ExecSystemCommand Box17 + +new vtk:MetaImageWriter Box18 + set Box18.Compression "true" + +new std:MultipleInputs Box19 + +new std:Exit Box20 + +new std:ReadColumnsString Box23 + set Box23.Dimension "2" + +new std:GetVectorStringElement Box24 + set Box24.I "0" + +new vtk:MetaImageWriter Box25 + set Box25.Compression "true" + +new std:ConcatStrings Box26 + set Box26.In2 ".noCorrection.mha" + + + + + +connect Box02.Out Box05.In + +connect Box03.Out Box06.In + +connect Box05.Widget Box07.Widget3 + +connect Box06.Widget Box07.Widget5 + +connect Box01.Out Box10.In + +connect Box10.Out Box09.In + +connect Box09.Widget Box11.Widget1 + +connect Box11.Widget Box08.Widget2 + +connect Box10.Out Box13.In + +connect Box13.Out Box12.In + +connect Box03.Out Box14.In + +connect Box14.Path Box15.In2 + +connect Box15.Out Box17.In + +connect Box18.BoxChange Box19.In4 + +connect Box03.Out Box18.Filename + +connect Box13.Out Box18.In + +connect Box12.Widget Box11.Widget4 + +connect Box17.BoxChange Box19.In1 + +connect Box07.Widget Box08.Widget1 + +connect Box02.Out Box23.FileName + +connect Box23.lstData2 Box24.In + +connect Box24.Out Box16.In + +connect Box16.Widget Box07.Widget7 + +connect Box24.Out Box13.Lower + +connect Box20.BoxChange Box19.In9 + +connect Box13.Out Box25.In + +connect Box03.Out Box26.In1 + +connect Box25.BoxChange Box19.In6 + +connect Box26.Out Box25.Filename + + + +# Complex input ports +input InImage Box01.In1 " " +input OutImage Box03.In1 " " +input InitialValues Box02.In1 " " +exec Box00 +exec Box19