X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00200_InitialParameters.bbs;fp=appli%2Ftemplate_creaPatientsSystem%2Fscripts%2F00200_InitialParameters.bbs;h=fa5ba55ae0b8e7e981416e04f3cc448ce850dae8;hb=380ac24f1bd5ac018b069d25147f2a626739e494;hp=0000000000000000000000000000000000000000;hpb=e22166cdf8719072962316960de1bf9f4565e62d;p=creaMiniTools.git diff --git a/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs new file mode 100644 index 0000000..fa5ba55 --- /dev/null +++ b/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs @@ -0,0 +1,201 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00200_InitialParameters.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include std +include wx +include creaVtk +include vtk +include creaMaracasVisu + +author "Author ??" +description "Description ??" +category "" + +new std:ConcatStrings Box01 + +new std:ConcatStrings Box02 + +new wx:LayoutLine Box04 + +new creaVtk:OutputWindow Box05 + +new std:ConcatStrings Box06 + set Box06.In1 "/davila/00100_OriginalImages/Test_01//Condition_01" + +new wx:OutputText Box07 + +new std:ReplaceCleanString Box08 + set Box08.Search "" + +new std:ConcatStrings Box09 + set Box09.In2 "/results/" + +new std:ConcatStrings Box10 + +new std:ReplaceCleanString Box11 + set Box11.Search "" + +new std:ConcatStrings Box12 + set Box12.In2 "/image.mha" + +new vtk:MetaImageReader Box13 + +new creaMaracasVisu:ViewerNV Box14 + +new wx:LayoutSplit Box15 + set Box15.Orientation "H" + set Box15.WinTitle "00200_InitialParameters.bbg" + +new wx:Slider Box16 + set Box16.In "100" + set Box16.ReactiveOnTrack "true" + set Box16.Title "Threshold" + +new creaVtk:ImageThreshold Box17 + set Box17.InValue "255" + set Box17.OutValue "0" + set Box17.Upper "10000" + +new creaMaracasVisu:ColorLayerImageView Box18 + set Box18.TypeControlsInterface "2" + +new wx:CommandButton Box19 + set Box19.Label "Save & Exit" + +new std:MultipleInputs Box20 + +new std:Exit Box22 + +new std:ConcatStrings Box23 + set Box23.In2 "/InitialValues.txt" + +new std:StringWriter Box24 + +new std:ConcatStrings Box25 + set Box25.In1 "Threshold " + +new std:ReadColumnsString Box26 + set Box26.Dimension "2" + +new std:GetVectorStringElement Box27 + set Box27.ErrorValue "100" + set Box27.I "0" + +new std:ReplaceCleanString Box29 + set Box29.Replace "00200_InitialParameters" + set Box29.Search "00100_OriginalImages" + +new std:ConcatStrings Box30 + set Box30.In1 "mkdir -p " + +new std:ExecSystemCommand Box31 + +new creaMaracasVisu:ImageChangeInformation Box32 + +new vtk:ImageVtkProperties Box33 + +new std:GetVectorDoubleElement Box34 + set Box34.I "1" + + + + +connect Box06.Out Box08.In + +connect Box02.Out Box08.Replace + +connect Box01.Out Box09.In1 + +connect Box09.Out Box07.In + + +connect Box08.Out Box11.In + +connect Box10.Out Box11.Replace + +connect Box11.Out Box09.In3 + +connect Box09.Out Box12.In1 + +connect Box12.Out Box13.In + +connect Box14.Widget Box15.Widget2 + +connect Box04.Widget Box15.Widget1 + +connect Box16.Out Box17.Lower + +connect Box17.Out Box18.In + +connect Box14.wxVtkBaseView2 Box18.WxVtkBaseView + +connect Box14.wxVtkBaseView3 Box18.WxVtkBaseView1 + +connect Box14.wxVtkBaseView4 Box18.WxVtkBaseView2 + +connect Box16.BoxChange Box18.BoxExecute + +connect Box19.Widget Box04.Widget9 + +connect Box19.BoxChange Box20.BoxExecute + +connect Box07.Widget Box04.Widget2 + +connect Box18.Widget Box04.Widget4 + +connect Box16.Widget Box04.Widget6 + +connect Box23.Out Box24.FileName + +connect Box16.Out Box25.In2 + +connect Box25.Out Box24.In0 + +connect Box24.BoxChange Box20.In2 + +connect Box23.Out Box26.FileName + +connect Box26.lstData2 Box27.In + +connect Box27.Out Box16.In + +connect Box09.Out Box29.In + +connect Box29.Out Box23.In1 + +connect Box29.Out Box30.In2 + +connect Box30.Out Box31.In + +connect Box31.BoxChange Box20.In1 + +connect Box22.BoxChange Box20.In9 + +connect Box32.Out Box17.In + +connect Box32.Out Box14.In + +connect Box13.Out Box32.In + +connect Box32.Out Box33.In + +connect Box33.MinMax Box34.In + +connect Box34.Out Box16.Max + + + +# Complex input ports +input BaseDir Box01.In1 " " +input PatientID Box02.In1 " " +input CoreID Box10.In1 " " +exec Box05 +exec Box15 +exec Box18