# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /home/davila/Creatis/C11/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 "" 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 "50" 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 vtk:vtkImageDataPointerRelay Box29 new vtk:vtkImageDataPointerRelay Box30 new wx:LayoutLine Box31 set Box31.Orientation "H" new wx:CheckBox Box32 set Box32.Title "Interpolation" 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.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 connect Box26.Widget Box31.Widget1 connect Box32.Widget Box31.Widget2 connect Box32.Out Box00.Interpolate connect Box32.BoxChange Box00.BoxExecute connect Box00.Widget Box07.Widget1 connect Box31.Widget Box07.Widget2 # Complex input ports input Image1 Box29.In " " input Image2 Box30.In " " # Complex output ports output OutWidget Box07.Widget " " endefine