]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/boxes/FindAxisEED.bbs
#3281 creaVtk Feature New Normal - FindAxisEED
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / boxes / FindAxisEED.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/FindAxisEED.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include vtk
9 include itk
10 include creaVtk
11 include std
12
13 define FindAxisEED creaVtk
14
15 author "Author ??"
16 description "Description ??"
17
18 category "<VOID>"
19
20 new vtk:ImageGaussianSmooth Box15
21
22 new itk:BinaryThresholdImageFilter Box16
23   set Box16.InsideValue "255"
24   set Box16.LowerThreshold "250"
25   set Box16.OutsideValue "0"
26   set Box16.UpperThreshold "1000"
27
28 new vtk:ImageGaussianSmooth Box17
29   set Box17.StdDevX "10"
30   set Box17.StdDevY "10"
31   set Box17.StdDevZ "3"
32
33 new creaVtk:ApplyMask Box20
34
35 new creaVtk:DistanceMap Box21
36   set Box21.Point1 "107 103 382"
37
38 new std:ConcatStrings Box30
39   set Box30.In1 "10"
40
41 new std:ConcatStrings Box31
42   set Box31.In1 "10"
43
44
45 connect Box15.Out Box16.In
46 connect Box16.Out Box17.In
47 connect Box17.Out Box20.Image
48 connect Box16.Out Box20.Mask
49 connect Box20.Out Box21.In
50 connect Box30.Out Box17.StdDevX
51 connect Box30.Out Box17.StdDevY
52 connect Box30.Out Box21.AverageRadius
53 connect Box31.Out Box15.StdDevX
54 connect Box31.Out Box15.StdDevY
55 connect Box31.Out Box15.StdDevZ
56
57 # Complex input ports
58 input stdDev Box31.In1 " "
59 input averageRadius Box30.In1 " "
60 input imageMask Box15.In " "
61 input slopeDistanceMap Box21.Slope " "
62 input Point2DistanceMap Box21.Point2 " "
63 input Point1DistanceMap Box21.Point1 " "
64
65 # Complex output ports
66 output imageOutTmp Box16.Out " "
67 output imageOutDistanceMap Box21.Out " "
68 output axisLstX Box21.LstPathXOut " "
69 output axisLstY Box21.LstPathYOut " "
70 output axisLstZ Box21.LstPathZOut " "
71 output finalPointDistanceMap Box21.FinalPoint " "
72 output outLengthPixelsDistanceMap Box21.LengthPixels " "
73
74
75 endefine