]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
#3370 creaVtk Feature New Normal - Compare Images with RGB
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / boxes / CompareImagesByRGB-Widget.bbs
diff --git a/bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs b/bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
new file mode 100644 (file)
index 0000000..0d15ef6
--- /dev/null
@@ -0,0 +1,120 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
+# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
+# ----------------------------------
+
+include std
+include itkvtk
+include creaMaracasVisu
+include creaVtk
+include vtk
+include wx
+include std
+include PackRecalage
+
+define CompareImagesByRGB-Widget creaVtk
+
+author "Author ??"
+description "Description ??"
+
+category "<VOID>"
+
+new creaMaracasVisu:ViewerNV Box00
+  set Box00.nTypeView "1  2 0"
+
+new creaVtk:ImageAppendComponents Box02
+
+new vtk:RescaleSlopeIntercept Box05
+  set Box05.A "0"
+  set Box05.B "255"
+  set Box05.OutputFormat "VTK_UNSIGNED_CHAR"
+  set Box05.Type "2"
+
+new creaMaracasVisu:SetwxVtkBaseViewLookupTable Box06
+
+new wx:LayoutSplit Box07
+  set Box07.Proportion "90"
+
+new creaVtk:ScalarsToColors Box10
+  set Box10.Type "3"
+
+new vtk:RescaleSlopeIntercept Box13
+  set Box13.A "0"
+  set Box13.B "255"
+  set Box13.OutputFormat "VTK_UNSIGNED_CHAR"
+  set Box13.Type "2"
+
+new std:StringSelect Box18
+  set Box18.In0 "1 1 1"
+  set Box18.In1 "0 0 0"
+  set Box18.In2 "1 0 0"
+  set Box18.In3 "0 1 0"
+  set Box18.In4 "0 0 1"
+  set Box18.In5 "1 1 0"
+  set Box18.In6 "1 0 1"
+  set Box18.In7 "0 1 1"
+
+new PackRecalage:AddImageToVector Box19
+
+new std:GetVectorStringElement Box20
+  set Box20.I "0"
+
+new std:GetVectorStringElement Box21
+  set Box21.I "1"
+
+new std:GetVectorStringElement Box22
+  set Box22.I "2"
+
+new vtk:GetVectorVtkImageDataElement Box23
+
+new vtk:GetVectorVtkImageDataElement Box24
+
+new vtk:GetVectorVtkImageDataElement Box25
+
+new wx:Slider Box26
+  set Box26.Max "7"
+  set Box26.Min "0"
+
+new wx:LayoutCenter Box28
+
+new vtk:vtkImageDataPointerRelay Box29
+
+new vtk:vtkImageDataPointerRelay Box30
+
+
+connect Box02.Out Box00.In
+connect Box10.LookupTable Box06.ScalarToColors
+connect Box05.Out Box19.In0
+connect Box13.Out Box19.In1
+connect Box18.Out Box20.In
+connect Box18.Out Box21.In
+connect Box18.Out Box22.In
+connect Box19.Out Box23.In
+connect Box20.Out Box23.I
+connect Box19.Out Box24.In
+connect Box19.Out Box25.In
+connect Box21.Out Box24.I
+connect Box22.Out Box25.I
+connect Box23.Out Box02.In0
+connect Box24.Out Box02.In1
+connect Box25.Out Box02.In2
+connect Box26.Out Box18.In
+connect Box00.Widget Box07.Widget1
+connect Box26.Widget Box28.Widget2
+connect Box28.Widget Box07.Widget2
+connect Box00.wxVtkBaseView1 Box06.BaseView1
+connect Box00.wxVtkBaseView2 Box06.BaseView2
+connect Box00.wxVtkBaseView3 Box06.BaseView3
+connect Box29.Out Box05.In
+connect Box30.Out Box13.In
+connect Box26.BoxChange Box06.BoxExecute
+
+# Complex input ports
+input Image1 Box29.In " "
+input Image2 Box30.In " "
+
+# Complex output ports
+output OutWidget Box07.Widget " "
+
+
+endefine