]> Creatis software - creaMiniTools.git/blobdiff - appli/template_creaPatientsSystem/scripts/00400_Correction.bbs
#3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00400_Correction.bbs
diff --git a/appli/template_creaPatientsSystem/scripts/00400_Correction.bbs b/appli/template_creaPatientsSystem/scripts/00400_Correction.bbs
new file mode 100644 (file)
index 0000000..47eb908
--- /dev/null
@@ -0,0 +1,414 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00400_Correction.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaMaracasVisu
+include wx
+include vtk
+include creaVtk
+include std
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new creaMaracasVisu:ManualPaint2 Box00
+  set Box00.Active_ManualPaint_Model "false         true       true      true"
+  set Box00.GrayLevel_ManualPaint_Model "-1             128    128       50"
+  set Box00.MaxRange_ManualPaint_Model "-1             50000    50000     50000"
+  set Box00.MinRange_ManualPaint_Model "-1              9000       9000      9000"
+  set Box00.SizeDistance_ManualPaint_Model "-1                15            4         4"
+  set Box00.TitleOptions "Desactivate Big    Small    Clean"
+  set Box00.Tolerance_Fill_ManualPaint_Model "-1                10000   10000    10000"
+  set Box00.colorBarPosition "-100 -100"
+
+new creaMaracasVisu:ViewerNV Box02
+
+new wx:LayoutSplit Box03
+  set Box03.Orientation "H"
+
+new vtk:vtkImageDataPointerRelay Box05
+
+new creaVtk:OutputWindow Box08
+
+new wx:LayoutLine Box09
+  set Box09.WinTitle "00400_Correction.bbs"
+
+new vtk:MarchingCubes Box13
+  set Box13.Value "128"
+
+new vtk:PolyDataToActor Box14
+  set Box14.Colour "1 1 1"
+
+new wx:Slider Box15
+  set Box15.In "100"
+  set Box15.Label "true"
+  set Box15.Max "100"
+  set Box15.ReactiveOnTrack "true"
+  set Box15.Title "Opacity 3D "
+
+new wx:LayoutLine Box17
+
+new std:Div Box18
+  set Box18.In2 "100"
+
+new std:MultipleInputs Box19
+
+new vtk:UpdateRender Box20
+  set Box20.Active "true"
+
+new vtk:MetaImageReader Box21
+
+new wx:CheckBox Box22
+  set Box22.In "false"
+  set Box22.Title "Picker"
+
+new creaVtk:PointPicker Box23
+  set Box23.TypeEvent "2"
+
+new std:MathOperationVector Box24
+  set Box24.Type "3"
+
+new std:MathOperationVector Box25
+  set Box25.Type "23"
+
+new vtk:ImageVtkProperties Box26
+
+new creaMaracasVisu:SetPosition Box28
+
+new wx:LayoutLine Box29
+  set Box29.Orientation "H"
+
+new wx:RadioButton Box30
+  set Box30.In0 "1x"
+  set Box30.In1 "3x"
+  set Box30.In2 "6x"
+  set Box30.In3 "12x"
+
+new wx:LayoutLine Box31
+  set Box31.Orientation "H"
+
+new creaMaracasVisu:SliderMinMax Box35
+  set Box35.InMinShow "100"
+  set Box35.ShowActual "false"
+
+new std:ConcatStrings Box34
+
+new std:ConcatStrings Box36
+
+new std:ConcatStrings Box37
+
+new std:ConcatStrings Box38
+  set Box38.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
+
+new std:ReplaceCleanString Box39
+  set Box39.Search "<CORE>"
+
+new std:ReplaceCleanString Box40
+  set Box40.Search "<PATIENT>"
+
+new std:ConcatStrings Box41
+  set Box41.In2 "/results/"
+
+new std:ConcatStrings Box42
+  set Box42.In2 "/image.mha"
+
+new std:ReplaceCleanString Box44
+  set Box44.Replace "00100_OriginalImages"
+  set Box44.Search "<ALGO>"
+
+new std:ConcatStrings Box45
+  set Box45.In2 "/image.mha"
+
+new std:ReplaceCleanString Box46
+  set Box46.Replace "00300_Filter"
+  set Box46.Search "<ALGO>"
+
+new vtk:vtkImageDataPointerRelay Box47
+
+new vtk:MetaImageReader Box48
+
+new vtk:ImageVtkProperties Box49
+
+new std:GetVectorDoubleElement Box50
+  set Box50.I "0"
+
+new std:GetVectorDoubleElement Box51
+  set Box51.I "1"
+
+new std:ConcatStrings Box52
+  set Box52.In1 "-1"
+  set Box52.In2 "  "
+  set Box52.In4 "  "
+  set Box52.In6 "  "
+
+new std:ConcatStrings Box53
+  set Box53.In1 "-1"
+  set Box53.In2 "  "
+  set Box53.In4 "  "
+  set Box53.In6 "  "
+
+new std:StringSelect Box54
+  set Box54.In0 "1"
+  set Box54.In1 "3"
+  set Box54.In2 "6"
+  set Box54.In3 "12"
+
+new std:ConcatStrings Box55
+  set Box55.In1 "-1"
+  set Box55.In2 "  "
+  set Box55.In4 "  "
+  set Box55.In6 "  "
+
+new std:Mul Box56
+  set Box56.In1 "2"
+
+new wx:CommandButton Box58
+  set Box58.Label "Save & Exit"
+
+new std:MultipleInputs Box59
+
+new std:Exit Box60
+
+new vtk:MetaImageWriter Box61
+  set Box61.Compression "true"
+
+new wx:OutputText Box62
+  set Box62.Title "Patient"
+
+new creaVtk:ImageThreshold Box63
+  set Box63.InValue "255"
+  set Box63.OutValue "0"
+
+new creaMaracasVisu:ColorLayerImageView Box64
+  set Box64.ColorBarPosition "-100 -100"
+  set Box64.Opacity "50"
+  set Box64.PlainOrGradientColor "true"
+  set Box64.TypeControlsInterface "2"
+  set Box64.WinTitle "Opacity Reference"
+  set Box64.lstBaseColor "0 0 0  1 0 0"
+  set Box64.lstGreyLevelBoundaries "0 128 256"
+  set Box64.lstTransparenceBoundaries "0"
+
+new wx:LayoutLine Box65
+
+new std:ConcatStrings Box66
+  set Box66.In2 ".final.mha"
+
+new vtk:MetaImageWriter Box67
+  set Box67.Compression "true"
+
+new creaVtk:ImageThreshold Box68
+  set Box68.InValue "255"
+  set Box68.Lower "127"
+  set Box68.OutValue "0"
+  set Box68.Upper "256"
+
+
+connect Box02.Widget Box03.Widget2
+
+connect Box02.BoxChange Box00.BoxExecute_ManualPaint_Model
+
+connect Box02.Point Box00.Point_ManualPaint_Model
+
+connect Box02.wxVtkBaseView2 Box00.wxvtkbaseview1
+
+connect Box02.wxVtkBaseView3 Box00.wxvtkbaseview2
+
+connect Box02.wxVtkBaseView4 Box00.wxvtkbaseview3
+
+connect Box05.Out Box02.In
+
+connect Box03.Widget Box09.Widget1
+
+connect Box05.Out Box00.Image_ManualPaint_Model
+
+connect Box13.Out Box14.In
+
+connect Box15.Out Box18.In1
+
+connect Box17.Widget Box03.Widget1
+
+connect Box18.Out Box14.Opacity
+
+connect Box15.BoxChange Box19.In1
+
+connect Box19.BoxChange Box14.BoxExecute
+
+connect Box14.BoxChange Box20.BoxExecute
+
+connect Box02.Renderer1 Box14.Renderer
+
+connect Box02.Renderer1 Box20.Renderer
+
+connect Box13.BoxChange Box19.In4
+
+connect Box02.BoxChange Box13.BoxExecute
+
+connect Box02.Renderer1 Box23.Renderer
+
+connect Box22.Out Box23.Active
+
+connect Box24.Out Box25.In0
+
+connect Box23.Point Box24.In0
+
+connect Box26.Spacing Box24.In1
+
+connect Box05.Out Box26.In
+
+connect Box25.Out Box28.Point
+
+connect Box02.wxVtkBaseView1 Box28.wxVtkBaseView
+
+connect Box23.BoxChange Box28.BoxExecute
+
+connect Box22.Widget Box29.Widget4
+
+connect Box15.Widget Box29.Widget3
+
+connect Box30.Widget Box31.Widget1
+
+
+
+
+connect Box38.Out Box39.In
+
+connect Box36.Out Box39.Replace
+
+connect Box39.Out Box40.In
+
+connect Box37.Out Box40.Replace
+
+connect Box34.Out Box41.In1
+
+connect Box40.Out Box41.In3
+
+connect Box42.Out Box21.In
+
+connect Box21.Out Box05.In
+
+connect Box41.Out Box44.In
+
+connect Box44.Out Box42.In1
+
+connect Box46.Out Box45.In1
+
+connect Box41.Out Box46.In
+
+connect Box48.Out Box47.In
+
+connect Box45.Out Box48.In
+
+connect Box47.Out Box00.Image2_ManualPaint_Model
+
+connect Box47.Out Box13.In
+
+connect Box05.Out Box49.In
+
+connect Box49.MinMax Box50.In
+
+connect Box50.Out Box35.InMin
+
+connect Box49.MinMax Box51.In
+
+connect Box51.Out Box35.InMax
+
+connect Box35.OutEnd Box52.In3
+
+connect Box35.OutEnd Box52.In5
+
+connect Box35.OutEnd Box52.In7
+
+connect Box52.Out Box00.MaxRange_ManualPaint_Model
+
+connect Box35.OutStart Box53.In3
+
+connect Box35.OutStart Box53.In5
+
+connect Box35.OutStart Box53.In7
+
+connect Box53.Out Box00.MinRange_ManualPaint_Model
+
+connect Box51.Out Box35.InMaxShow
+
+connect Box30.Out Box54.In
+
+connect Box54.Out Box56.In2
+
+connect Box56.Out Box55.In3
+
+connect Box54.Out Box55.In5
+
+connect Box54.Out Box55.In7
+
+connect Box55.Out Box00.SizeDistance_ManualPaint_Model
+
+connect Box60.BoxChange Box59.In9
+
+connect Box61.BoxChange Box59.In1
+
+connect Box47.Out Box61.In
+
+connect Box45.Out Box61.Filename
+
+connect Box58.BoxChange Box59.BoxExecute
+
+connect Box42.Out Box62.In
+
+connect Box58.Widget Box17.Widget8
+
+connect Box29.Widget Box17.Widget6
+
+connect Box31.Widget Box17.Widget4
+
+connect Box00.widgetOut Box17.Widget2
+
+connect Box62.Widget Box17.Widget1
+
+connect Box63.Out Box64.In
+
+connect Box35.Widget Box65.Widget1
+
+connect Box64.Widget Box65.Widget3
+
+connect Box65.Widget Box31.Widget4
+
+connect Box35.OutEnd Box63.Upper
+
+connect Box35.OutStart Box63.Lower
+
+connect Box02.wxVtkBaseView2 Box64.WxVtkBaseView
+
+connect Box02.wxVtkBaseView3 Box64.WxVtkBaseView1
+
+connect Box02.wxVtkBaseView4 Box64.WxVtkBaseView2
+
+connect Box05.Out Box63.In
+
+connect Box35.BoxChange Box64.BoxExecute
+
+connect Box45.Out Box66.In1
+
+connect Box66.Out Box67.Filename
+
+connect Box47.Out Box68.In
+
+connect Box67.BoxChange Box59.In3
+
+connect Box68.Out Box67.In
+
+
+
+# Complex input ports
+input BaseDir Box34.In1 " "
+input CoreID Box36.In1 " "
+input PatientID Box37.In1 " "
+exec Box08
+exec Box09