1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/creaTools/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs
4 # ----------------------------------
11 define ApplyMaskWithTransparence toolsbbtk
14 description "Description ??"
18 new BinaryOperations Box06
19 set Box06.Operation "2"
21 new ImageVtkProperties Box16
23 new BinaryOperations Box20
25 new GetVectorFloatElement Box22
28 new RescaleSlopeIntercept Box23
29 set Box23.OutputFormat "VTK_DOUBLE"
32 new UnaryOperations Box24
33 set Box24.InConstant "1"
34 set Box24.Operation "11"
36 new vtkImageDataPointerRelay Box18
38 new vtkImageDataPointerRelay Box19
40 new UnaryOperations Box09
41 set Box09.Operation "3"
43 new ImageVtkProperties Box10
45 new GetVectorFloatElement Box11
48 new 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 " "