]> Creatis software - bbtk.git/blob - packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs
#3073 BBTK Bug New Normal - message documentation in boxes
[bbtk.git] / packages / toolsbbtk / bbs / boxes / ApplyMaskWithTransparence.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - ApplyMaskWithTransparence.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include vtk
9 include std
10
11 define ApplyMaskWithTransparence toolsbbtk
12
13 author "Author ??"
14 description "Description ??"
15
16 category "<VOID>"
17
18 new vtk:BinaryOperations Box06
19   set Box06.Operation "2"
20
21 new vtk:ImageVtkProperties Box16
22
23 new vtk:BinaryOperations Box20
24
25 new std:GetVectorFloatElement Box22
26   set Box22.I "0"
27
28 new vtk:RescaleSlopeIntercept Box23
29   set Box23.OutputFormat "VTK_DOUBLE"
30   set Box23.Type "1"
31
32 new vtk:UnaryOperations Box24
33   set Box24.InConstant "1"
34   set Box24.Operation "11"
35
36 new vtk:vtkImageDataPointerRelay Box18
37
38 new vtk:vtkImageDataPointerRelay Box19
39
40 new vtk:UnaryOperations Box09
41   set Box09.Operation "3"
42
43 new vtk:ImageVtkProperties Box10
44
45 new std:GetVectorFloatElement Box11
46   set Box11.I "1"
47
48 new vtk:RescaleSlopeIntercept Box12
49   set Box12.OutputFormat "VTK_DOUBLE"
50
51
52 connect Box16.MinMax Box22.In
53 connect Box23.Out Box24.In1
54 connect Box22.Out Box24.NewValue
55 connect Box06.Out Box20.In2
56 connect Box24.Out Box20.In1
57 connect Box19.Out Box16.In
58 connect Box19.Out Box06.In2
59 connect Box18.Out Box10.In
60 connect Box18.Out Box09.In1
61 connect Box10.MinMax Box11.In
62 connect Box11.Out Box09.InConstant
63 connect Box09.Out Box12.In
64 connect Box12.Out Box23.In
65 connect Box12.Out Box06.In1
66
67 # Complex input ports
68 input maskImage Box18.In " "
69 input Image Box19.In " "
70
71 # Complex output ports
72 output OutImage Box20.Out " "
73
74
75 endefine