# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /home/davila/Creatis/creaTools/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs # ---------------------------------- include std include itkvtk include vtk include std define ApplyMaskWithTransparence toolsbbtk author "Author ??" description "Description ??" category "" new BinaryOperations Box06 set Box06.Operation "2" new ImageVtkProperties Box16 new BinaryOperations Box20 new GetVectorFloatElement Box22 set Box22.I "0" new RescaleSlopeIntercept Box23 set Box23.OutputFormat "VTK_DOUBLE" set Box23.Type "1" new UnaryOperations Box24 set Box24.InConstant "1" set Box24.Operation "11" new vtkImageDataPointerRelay Box18 new vtkImageDataPointerRelay Box19 new UnaryOperations Box09 set Box09.Operation "3" new ImageVtkProperties Box10 new GetVectorFloatElement Box11 set Box11.I "1" new RescaleSlopeIntercept Box12 set Box12.OutputFormat "VTK_DOUBLE" connect Box16.MinMax Box22.In connect Box23.Out Box24.In1 connect Box22.Out Box24.NewValue connect Box06.Out Box20.In2 connect Box24.Out Box20.In1 connect Box19.Out Box16.In connect Box19.Out Box06.In2 connect Box18.Out Box10.In connect Box18.Out Box09.In1 connect Box10.MinMax Box11.In connect Box11.Out Box09.InConstant connect Box09.Out Box12.In connect Box12.Out Box23.In connect Box12.Out Box06.In1 # Complex input ports input maskImage Box18.In " " input Image Box19.In " " # Complex output ports output OutImage Box20.Out " " message endefine