# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include creaVtk include std include wx include creaMaracasVisu include vtk include creaMiniTools 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" new creaMiniTools:WriteStatePatientSystem Box27 set Box27.State "Finish" new std:ConcatStrings Box29 set Box29.In2 "/Step03_Filter.txt" new std:ConcatStrings Box32 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 Box13.Out Box25.In connect Box03.Out Box26.In1 connect Box25.BoxChange Box19.In6 connect Box26.Out Box25.Filename connect Box27.boxChange Box19.In8 connect Box14.Path Box29.In1 connect Box29.Out Box27.Filename connect Box32.Out Box27.User connect Box20.BoxChange Box19.In9 # Complex input ports input InImage Box01.In1 " " input OutImage Box03.In1 " " input InitialValues Box02.In1 " " input creaUser Box32.In1 " " exec Box00 exec Box19