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/DilateWidget.bbs
29 # ----------------------------------
34 include creaMaracasVisu
39 define DilateWidget 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 "Dilate"
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
74 new ImageContinuousDilate3D Box13
75 set Box13.KernelSizeX 3
76 set Box13.KernelSizeY 3
77 set Box13.KernelSizeZ 3
81 set Box15.Title "kernelZ"
84 connect Box00.Widget Box01.Widget5
85 connect Box00.BoxChange Box03.BoxExecute
86 connect Box03.Widget Box05.Widget2
87 connect Box01.Widget Box11.Widget1
88 connect Box11.Widget Box05.Widget1
89 connect Box10.Widget Box11.Widget3
90 connect Box14.Widget Box11.Widget2
91 connect Box13.Out Box10.In
92 connect Box13.Out Box14.In
93 connect Box13.Out Box03.In
94 connect Box09.Out Box13.KernelSizeX
95 connect Box08.Out Box13.KernelSizeY
96 connect Box08.Widget Box01.Widget2
97 connect Box09.Widget Box01.Widget1
98 connect Box15.Widget Box01.Widget3
99 connect Box15.Out Box13.KernelSizeZ
100 connect Box00.BoxChange Box14.BoxExecute
101 connect Box00.BoxChange Box09.BoxExecute
102 connect Box00.BoxChange Box08.BoxExecute
103 connect Box00.BoxChange Box15.BoxExecute
104 connect Box00.BoxChange Box13.BoxExecute
107 # Complex input ports
108 input vtkRenderer Box14.vtkRenderer " "
109 input In Box13.In " "
111 # Complex output ports
112 output Widget Box05.Widget " "
113 output BoxChange Box14.BoxChange " "
114 output OutImage Box13.Out " "