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=da86c154ab03bafb5f8c20495436c8cdda5b4113;hb=6b76f60671eed79e17d8f602878dac4d1928659f;hp=0000000000000000000000000000000000000000;hpb=302ab66a86986677a5726ffbac9d545292a77fc4;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..da86c15 --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs @@ -0,0 +1,76 @@ +# ---------------------------------- +# - 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