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/ErodeWidget.bbs
29 # ----------------------------------
34 include creaMaracasVisu
39 define ErodeWidget creaMiniTools
41 author "info-team at creatis.insa-lyon.fr"
42 description "Threshod binary widget"
44 category "filter widget"
46 new CommandButton Box00
50 set Box01.WinTitle "Parameters"
53 set Box03.nTypeView "0"
56 set Box05.WinTitle "Erode"
60 set Box08.Title "kernelY"
64 set Box09.Title "kernelX"
66 new SaveMHD-Button Box10
70 new IsoSurfaceWidget Box14
71 set Box14.Title "Iso Surface"
72 set Box14.maxIsovalue 255
76 set Box15.Title "kernelZ"
78 new ImageContinuousErode3D Box16
81 connect Box00.Widget Box01.Widget5
82 connect Box00.BoxChange Box03.BoxExecute
83 connect Box03.Widget Box05.Widget2
84 connect Box01.Widget Box11.Widget1
85 connect Box11.Widget Box05.Widget1
86 connect Box10.Widget Box11.Widget3
87 connect Box14.Widget Box11.Widget2
88 connect Box08.Widget Box01.Widget2
89 connect Box09.Widget Box01.Widget1
90 connect Box15.Widget Box01.Widget3
91 connect Box00.BoxChange Box14.BoxExecute
92 connect Box16.Out Box03.In
93 connect Box16.Out Box14.In
94 connect Box16.Out Box10.In
95 connect Box09.Out Box16.KernelSizeX
96 connect Box08.Out Box16.KernelSizeY
97 connect Box15.Out Box16.KernelSizeZ
100 # Complex input ports
101 input vtkRenderer Box14.vtkRenderer " "
102 input In Box16.In " "
104 # Complex output ports
105 output Widget Box05.Widget " "
106 output BoxChange Box14.BoxChange " "
107 output OutImage Box16.Out " "