]> Creatis software - bbtk.git/blobdiff - packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs
#3120 BBTK Bug New Normal - merge branch changestoITK3and4 FROM master
[bbtk.git] / packages / toolsbbtk / bbs / boxes / ApplyMaskWithTransparence.bbs
diff --git a/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs b/packages/toolsbbtk/bbs/boxes/ApplyMaskWithTransparence.bbs
new file mode 100644 (file)
index 0000000..802f204
--- /dev/null
@@ -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 "<VOID>"
+
+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