X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Ftoolsbbtk%2Fbbs%2Fboxes%2FApplyMaskWithTransparence.bbs;fp=packages%2Ftoolsbbtk%2Fbbs%2Fboxes%2FApplyMaskWithTransparence.bbs;h=802f20411c1f35049df5e8de719cba8463456ce0;hb=427d8c0ac838ab789a57b28f62a7f9ff243e7b60;hp=0000000000000000000000000000000000000000;hpb=c2d2ccbc4bac635e5d0b802d9830efd94b060dab;p=bbtk.git diff --git a/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs b/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs new file mode 100644 index 0000000..802f204 --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs @@ -0,0 +1,75 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - ApplyMaskWithTransparence.bbs +# ---------------------------------- + +include std +include itkvtk +include vtk +include std + +define ApplyMaskWithTransparence toolsbbtk + +author "Author ??" +description "Description ??" + +category "" + +new vtk:BinaryOperations Box06 + set Box06.Operation "2" + +new vtk:ImageVtkProperties Box16 + +new vtk:BinaryOperations Box20 + +new std:GetVectorFloatElement Box22 + set Box22.I "0" + +new vtk:RescaleSlopeIntercept Box23 + set Box23.OutputFormat "VTK_DOUBLE" + set Box23.Type "1" + +new vtk:UnaryOperations Box24 + set Box24.InConstant "1" + set Box24.Operation "11" + +new vtk:vtkImageDataPointerRelay Box18 + +new vtk:vtkImageDataPointerRelay Box19 + +new vtk:UnaryOperations Box09 + set Box09.Operation "3" + +new vtk:ImageVtkProperties Box10 + +new std:GetVectorFloatElement Box11 + set Box11.I "1" + +new vtk: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 " " + + +endefine