1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - ApplyMaskWithTransparence.bbs
4 # ----------------------------------
11 define ApplyMaskWithTransparence toolsbbtk
14 description "Description ??"
18 new vtk:BinaryOperations Box06
19 set Box06.Operation "2"
21 new vtk:ImageVtkProperties Box16
23 new vtk:BinaryOperations Box20
25 new std:GetVectorFloatElement Box22
28 new vtk:RescaleSlopeIntercept Box23
29 set Box23.OutputFormat "VTK_DOUBLE"
32 new vtk:UnaryOperations Box24
33 set Box24.InConstant "1"
34 set Box24.Operation "11"
36 new vtk:vtkImageDataPointerRelay Box18
38 new vtk:vtkImageDataPointerRelay Box19
40 new vtk:UnaryOperations Box09
41 set Box09.Operation "3"
43 new vtk:ImageVtkProperties Box10
45 new std:GetVectorFloatElement Box11
48 new vtk:RescaleSlopeIntercept Box12
49 set Box12.OutputFormat "VTK_DOUBLE"
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
68 input maskImage Box18.In " "
69 input Image Box19.In " "
71 # Complex output ports
72 output OutImage Box20.Out " "