1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/creaMiniTools/boxes/ThresholdWidget.bbs
4 # ----------------------------------
10 include creaMaracasVisu
11 include creaMiniToolsBase
13 define ThresholdWidget creaMiniTools
15 author "info-team at creatis.insa-lyon.fr"
16 description "Threshod binary widget"
18 category "filter widget"
20 new CommandButton Box00
24 set Box01.WinTitle "Parameters"
26 new BinaryThresholdImageFilter Box02
27 set Box02.InsideValue 255
28 set Box02.LowerThreshold 1500
29 set Box02.OutsideValue 0
30 set Box02.UpperThreshold 10000
33 set Box03.nTypeView "0"
36 set Box05.WinTitle Threshold
38 new SliderMinMax Box07
40 set Box07.InMaxShow 2000
42 set Box07.InMinShow 1000
48 new SaveMHD-Button Box10
51 set Box11.In "Min. Max. Gray level"
54 connect Box00.Widget Box01.Widget5
55 connect Box00.BoxChange Box03.BoxExecute
56 connect Box02.Out Box03.In
57 connect Box03.Widget Box05.Widget2
58 connect Box07.OutEnd Box02.UpperThreshold
59 connect Box08.Out Box02.LowerThreshold
60 connect Box01.Widget Box09.Widget1
61 connect Box09.Widget Box05.Widget1
62 connect Box10.Widget Box09.Widget2
63 connect Box02.Out Box10.In
64 connect Box11.Widget Box01.Widget1
65 connect Box07.Widget Box01.Widget2
66 connect Box08.Widget Box01.Widget4
72 # Complex output ports
73 output Widget Box05.Widget " "