1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 # ----------------------------------
27 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
28 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
29 # ----------------------------------
35 include creaMaracasVisu
36 include creaMiniToolsBase
42 define ThresholdWidget creaMiniTools
44 author "info-team at creatis.insa-lyon.fr"
45 description "Threshod binary widget"
47 category "filter widget"
49 new CommandButton Box00
53 set Box01.WinTitle "Parameters"
55 new BinaryThresholdImageFilter Box02
56 set Box02.InsideValue 255
57 set Box02.LowerThreshold 1500
58 set Box02.OutsideValue 0
59 set Box02.UpperThreshold 10000
62 set Box03.nTypeView "0"
65 set Box05.WinTitle Threshold
67 new SliderMinMax Box07
69 set Box07.InMaxShow 2000
71 set Box07.InMinShow 1000
75 new SaveMHD-Button Box10
78 set Box11.In "Min. Max. Gray level"
80 new IsoSurfaceWidget Box12
81 set Box12.Title "Iso Surface"
83 new vtkImageDataPointerRelay Box13
85 new ImageVtkProperties Box14
87 new GetVectorFloatElement Box15
90 new GetVectorFloatElement Box16
94 connect Box00.Widget Box01.Widget5
95 connect Box00.BoxChange Box03.BoxExecute
96 connect Box02.Out Box03.In
97 connect Box03.Widget Box05.Widget2
98 connect Box01.Widget Box09.Widget1
99 connect Box09.Widget Box05.Widget1
100 connect Box02.Out Box10.In
101 connect Box11.Widget Box01.Widget1
102 connect Box07.Widget Box01.Widget2
103 connect Box02.Out Box12.In
104 connect Box00.BoxChange Box12.BoxExecute
105 connect Box12.Widget Box09.Widget2
106 connect Box10.Widget Box09.Widget3
107 connect Box13.Out Box02.In
108 connect Box13.Out Box14.In
109 connect Box14.MinMax Box15.In
110 connect Box14.MinMax Box16.In
111 connect Box16.Out Box07.InMax
112 connect Box15.Out Box07.InMin
113 connect Box07.OutEnd Box02.UpperThreshold
114 connect Box07.OutStart Box02.LowerThreshold
115 connect Box00.BoxChange Box07.BoxExecute
118 # Complex input ports
119 input vtkRenderer Box12.vtkRenderer " "
120 input In Box13.In " "
122 # Complex output ports
123 output Widget Box05.Widget " "
124 output BoxChange Box12.BoxChange " "
125 output OutImage Box02.Out " "