# ----------------------------------
# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point_3a.bbg
+# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg
# ----------------------------------
APP_START
AUTHOR:info-dev@creatis.insa-lyon.fr
COMPLEXBOX:FALSE
COMPLEXINPUTS:0
-BOXES:11
+BOXES:15
BOX
creaMaracasVisu:ViewerNV:viewer
ISEXEC:FALSE
--78.223439:-100.062703:-900.000000
--17.583439:-110.062703:-900.000000
+-95.886041:-28.640196:-900.000000
+-50.311041:-38.640196:-900.000000
PORT
nTypeView:"5"
FIN_BOX
BOX
creaMaracasVisu:ViewerNV:viewer2
ISEXEC:FALSE
--9.071012:-101.575424:-900.000000
-51.568988:-111.575424:-900.000000
+-30.590585:-28.499929:-900.000000
+14.984415:-38.499929:-900.000000
PORT
nTypeView:"5"
FIN_BOX
BOX
wx:LayoutSplit:imagesLayout
ISEXEC:FALSE
--13.395914:-119.626520:-900.000000
-32.179086:-129.626520:-900.000000
+-11.258778:-56.794727:-900.000000
+34.316222:-66.794727:-900.000000
PORT
Orientation:"v"
PORT
BOX
wx:LayoutSplit:resultLayout
ISEXEC:FALSE
-78.551776:-103.401289:-900.000000
-124.126776:-113.401289:-900.000000
+39.262584:-34.045017:-900.000000
+84.837584:-44.045017:-900.000000
PORT
Proportion:"70"
FIN_BOX
BOX
wx:LayoutSplit:main
ISEXEC:TRUE
-28.141037:-139.355096:-900.000000
-73.716037:-149.355096:-900.000000
+30.278173:-76.523303:-900.000000
+75.853173:-86.523303:-900.000000
PORT
Orientation:"h"
PORT
BOX
vtk:vtkImageDataPointerRelay:Box22
ISEXEC:FALSE
--26.597823:27.085923:-900.000000
-44.577177:17.085923:-900.000000
+15.030994:79.476906:-900.000000
+86.205994:69.476906:-900.000000
FIN_BOX
BOX
vtk:vtkImageDataPointerRelay:Box23
ISEXEC:FALSE
-49.827351:27.600195:-900.000000
-121.002351:17.600195:-900.000000
+94.941217:79.316208:-900.000000
+166.116217:69.316208:-900.000000
FIN_BOX
BOX
creaImageIO:ImagesChooserDialogBox:Box24
ISEXEC:FALSE
--26.429081:60.271568:-900.000000
-44.745919:50.271568:-900.000000
+20.909954:105.817542:-900.000000
+92.084954:95.817542:-900.000000
FIN_BOX
BOX
creaImageIO:ImagesChooserDialogBox:Box25
ISEXEC:FALSE
-51.990104:61.564018:-900.000000
-123.165104:51.564018:-900.000000
+102.275907:106.160598:-900.000000
+173.450907:96.160598:-900.000000
FIN_BOX
BOX
PackRecalage:Recalage3D1PointWidget:Box52
ISEXEC:FALSE
-28.417586:-17.915301:-900.000000
-99.592586:-27.915301:-900.000000
+82.461349:49.513410:-900.000000
+153.636349:39.513410:-900.000000
FIN_BOX
BOX
PackRecalage:CompareImagesWidget3D:Box20
ISEXEC:FALSE
-18.654027:-58.445572:-900.000000
-89.829027:-68.445572:-900.000000
+25.866266:24.435408:-900.000000
+97.041266:14.435408:-900.000000
FIN_BOX
-CONNECTIONS:15
+BOX
+PackRecalage:CompareImages_3DwithPlanes_Widget:Box11
+ISEXEC:FALSE
+99.719017:23.927157:-900.000000
+170.894017:13.927157:-900.000000
+PORT
+WinTitle:"3D Planes"
+FIN_BOX
+BOX
+wx:LayoutSplit:Box12
+ISEXEC:FALSE
+83.845176:-12.238888:-900.000000
+129.420176:-22.238888:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+wx:LayoutTab:Box13
+ISEXEC:FALSE
+98.097060:6.012510:-900.000000
+155.657060:-3.987490:-900.000000
+FIN_BOX
+BOX
+PackRecalage:CompareImagesWidget:Box14
+ISEXEC:FALSE
+182.152296:24.619190:-900.000000
+253.327296:14.619190:-900.000000
+PORT
+WinTitle:"2D+t"
+FIN_BOX
+CONNECTIONS:23
CONNECTION
viewer:Widget:imagesLayout:Widget1
NumberOfControlPoints:0
Box23:Out:Box52:Image2
NumberOfControlPoints:0
CONNECTION
-Box20:Widget:resultLayout:Widget1
-NumberOfControlPoints:0
-CONNECTION
-Box23:Out:Box20:Image1
-NumberOfControlPoints:2
-112.791573:-27.331705:-900.000000
-53.984684:-42.909939:-900.000000
-CONNECTION
Box52:Out:Box20:Image2
NumberOfControlPoints:0
CONNECTION
CONNECTION
Box52:Widget:resultLayout:Widget2
NumberOfControlPoints:1
-93.103615:-51.917995:-900.000000
+90.032890:1.161733:-900.000000
+CONNECTION
+Box23:Out:Box11:In1
+NumberOfControlPoints:0
+CONNECTION
+Box52:Out:Box11:In2
+NumberOfControlPoints:0
+CONNECTION
+Box20:Widget:Box12:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box11:Widget:Box13:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box13:Widget:Box12:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box12:Widget:resultLayout:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box23:Out:Box20:Image1
+NumberOfControlPoints:0
+CONNECTION
+Box52:Out:Box14:In2
+NumberOfControlPoints:0
+CONNECTION
+Box23:Out:Box14:In1
+NumberOfControlPoints:0
+CONNECTION
+Box52:BoxChange:Box13:BoxExecute
+NumberOfControlPoints:0
APP_END
# ----------------------------------
# - BBTKGEditor v 1.4 BBS BlackBox Script
-# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point_3a.bbs
+# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs
# ----------------------------------
# BBTK GEditor Script
new CompareImagesWidget3D Box20
+new CompareImages_3DwithPlanes_Widget Box11
+ set Box11.WinTitle "3D Planes"
+
+new LayoutSplit Box12
+ set Box12.Orientation "H"
+
+new LayoutTab Box13
+
+new CompareImagesWidget Box14
+ set Box14.WinTitle "2D+t"
+
connect viewer.Widget imagesLayout.Widget1
connect Box23.Out Box52.Image2
-connect Box20.Widget resultLayout.Widget1
-
-connect Box23.Out Box20.Image1
-
connect Box52.Out Box20.Image2
connect Box52.BoxChange Box20.BoxExecute
connect Box52.Widget resultLayout.Widget2
+connect Box23.Out Box11.In1
+
+connect Box52.Out Box11.In2
+
+connect Box20.Widget Box12.Widget1
+
+connect Box11.Widget Box13.Widget1
+
+connect Box13.Widget Box12.Widget2
+
+connect Box12.Widget resultLayout.Widget1
+
+connect Box23.Out Box20.Image1
+
+connect Box52.Out Box14.In2
+
+connect Box23.Out Box14.In1
+
+connect Box52.BoxChange Box13.BoxExecute
+
# Complex input ports
COMPLEXOUTPUTS:1
COMPLEX_PORT
Widget
-29.671612:-131.445757:-900.000000
+10.881246:-134.666962:-900.000000
FIN_COMPLEX_PORT
COMPLEXINPUTS:2
COMPLEX_PORT
BOX
PackRecalage:ImageSwitcherBox:switch
ISEXEC:FALSE
-172.679775:65.498525:-900.000000
-218.254775:55.498525:-900.000000
+132.146271:63.887922:-900.000000
+177.721271:53.887922:-900.000000
FIN_BOX
BOX
wx:CheckBox:checkS
BOX
wx:LayoutLine:Box47
ISEXEC:FALSE
-212.417684:9.408267:-900.000000
-269.977684:-0.591733:-900.000000
+215.370456:14.508509:-900.000000
+272.930456:4.508509:-900.000000
PORT
Orientation:H
FIN_BOX
BOX
wx:LayoutLine:Box48
ISEXEC:FALSE
-76.753747:-64.327520:-900.000000
-134.313747:-74.327520:-900.000000
+181.711362:-65.401255:-900.000000
+239.271362:-75.401255:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ViewerNV:Box49
wx:Slider:sdrZ
ISEXEC:FALSE
567.054652:-61.454750:-900.000000
-599.829652:-71.454750:-900.000000
+618.454652:-71.454750:-900.000000
PORT
Min:"0"
PORT
wx:Slider:sdrF
ISEXEC:FALSE
829.057291:-86.758889:-900.000000
-861.832291:-96.758889:-900.000000
+880.457291:-96.758889:-900.000000
PORT
In:"0"
PORT
wx:Slider:colorLevel
ISEXEC:FALSE
626.588388:-79.223450:-900.000000
-672.163388:-89.223450:-900.000000
+677.988388:-89.223450:-900.000000
PORT
Min:"0"
PORT
wx:Slider:windowLevel
ISEXEC:FALSE
697.550959:-84.063593:-900.000000
-743.125959:-94.063593:-900.000000
+748.950959:-94.063593:-900.000000
PORT
Min:"0"
PORT
wx:Slider:sdr
ISEXEC:FALSE
655.843588:-494.766848:-900.000000
-688.618588:-504.766848:-900.000000
+707.243588:-504.766848:-900.000000
PORT
In:"14"
PORT
wx:Slider:sdr2
ISEXEC:FALSE
714.326943:-493.179468:-900.000000
-747.101943:-503.179468:-900.000000
+765.726943:-503.179468:-900.000000
PORT
In:"14"
PORT
wx:LayoutLine:ly
ISEXEC:FALSE
697.847204:-530.358318:-900.000000
-730.622204:-540.358318:-900.000000
+755.407204:-540.358318:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ViewerNV:viewerCH
ISEXEC:FALSE
530.879919:-624.359326:-900.000000
-576.454919:-634.359326:-900.000000
+591.519919:-634.359326:-900.000000
PORT
nTypeView:"0"
FIN_BOX
BOX
PackRecalage:TransparencyBox:trans
ISEXEC:FALSE
-206.412919:-775.835874:-900.000000
-251.987919:-785.835874:-900.000000
+174.200863:-765.830614:-900.000000
+219.775863:-775.830614:-900.000000
FIN_BOX
BOX
wx:Slider:sdrP
ISEXEC:FALSE
324.954367:-704.406667:-900.000000
-357.729367:-714.406667:-900.000000
+376.354367:-714.406667:-900.000000
PORT
In:"50"
PORT
creaMaracasVisu:ViewerNV:transView
ISEXEC:FALSE
164.282997:-798.714564:-900.000000
-209.857997:-808.714564:-900.000000
+224.922997:-808.714564:-900.000000
PORT
nTypeView:"0"
FIN_BOX
wx:LayoutTab:tabs
ISEXEC:FALSE
191.519819:-874.211466:-900.000000
-237.094819:-884.211466:-900.000000
+249.079819:-884.211466:-900.000000
PORT
Orientation:V
FIN_BOX
wx:LayoutLine:tools
ISEXEC:FALSE
771.358267:-334.065430:-900.000000
-816.933267:-344.065430:-900.000000
+828.918267:-344.065430:-900.000000
PORT
WinTitle:"Appearance"
FIN_BOX
wx:LayoutTab:Box61
ISEXEC:FALSE
403.420085:-702.995108:-900.000000
-448.995085:-712.995108:-900.000000
+460.980085:-712.995108:-900.000000
FIN_BOX
BOX
creaMaracasVisu:ViewerNV:Box65
ISEXEC:FALSE
419.572796:-801.103027:-900.000000
-465.147796:-811.103027:-900.000000
+480.212796:-811.103027:-900.000000
PORT
nTypeView:0
FIN_BOX
creaMaracasVisu:ViewerNV:Box66
ISEXEC:FALSE
497.442434:-799.958959:-900.000000
-543.017434:-809.958959:-900.000000
+558.082434:-809.958959:-900.000000
PORT
nTypeView:0
FIN_BOX
wx:LayoutLine:Box67
ISEXEC:FALSE
428.693407:-832.025005:-900.000000
-474.268407:-842.025005:-900.000000
+486.253407:-842.025005:-900.000000
PORT
Orientation:H
PORT
BOX
std:MultipleInputs:Box71
ISEXEC:FALSE
-72.384710:-154.644058:-900.000000
-117.959710:-164.644058:-900.000000
+-194.872618:-467.078336:-900.000000
+-149.297618:-477.078336:-900.000000
FIN_BOX
BOX
PackRecalage:CompareImagesWidget_base_2Dt_B:Box72
Image2
27.974017:35.166416:-900.000000
FIN_COMPLEX_PORT
-BOXES:13
+BOXES:11
BOX
creaMaracasVisu:ViewerNV:viewerResult
ISEXEC:FALSE
wx:LayoutTab:Box26
ISEXEC:FALSE
-184.936248:-192.642174:-900.000000
--122.337432:-202.642174:-900.000000
+-127.376248:-202.642174:-900.000000
PORT
WinTitle:"2D-Compare"
FIN_BOX
BOX
-PackRecalage:CompareImagesWidget:Box27
-ISEXEC:FALSE
--283.502923:-95.491651:-900.000000
--198.294902:-105.491651:-900.000000
-PORT
-WinTitle:"2Dt-Comparing"
-FIN_BOX
-BOX
wx:LayoutSplit:Box28
ISEXEC:FALSE
-46.147657:-153.281784:-900.000000
wx:LayoutLine:Box29
ISEXEC:FALSE
-36.447166:-116.254418:-900.000000
-9.127834:-126.254418:-900.000000
+21.112834:-126.254418:-900.000000
FIN_BOX
BOX
wxvtk:IsoSurfaceWidget:Box30
wx:LayoutTab:Box38
ISEXEC:FALSE
-13.417754:-99.991659:-900.000000
-32.157246:-109.991659:-900.000000
+44.142246:-109.991659:-900.000000
FIN_BOX
BOX
wx:LayoutTab:Box39
ISEXEC:FALSE
-74.673912:-90.664048:-900.000000
--29.098912:-100.664048:-900.000000
+-17.113912:-100.664048:-900.000000
FIN_BOX
BOX
std:MultipleInputs:Box19
23.468025:0.813061:-900.000000
94.643025:-9.186939:-900.000000
FIN_BOX
-BOX
-PackRecalage:CompareImages_3DwithPlanes_Widget:Box12
-ISEXEC:FALSE
--189.475586:-94.574628:-900.000000
--118.300586:-104.574628:-900.000000
-PORT
-WinTitle:"3D planes Comparing"
-FIN_BOX
-CONNECTIONS:25
-CONNECTION
-Box27:Widget:Box26:Widget2
-NumberOfControlPoints:0
-CONNECTION
-Box23:Out:Box27:In1
-NumberOfControlPoints:0
+CONNECTIONS:19
CONNECTION
viewerResult:Widget:Box28:Widget2
NumberOfControlPoints:3
BoxExecute:BoxExecute:Box19:In3
NumberOfControlPoints:0
CONNECTION
-Box20:Out:Box27:In2
-NumberOfControlPoints:1
--65.108238:-53.813183:-900.000000
-CONNECTION
Box20:Out:Box31:In
NumberOfControlPoints:0
CONNECTION
CONNECTION
Image2:Image2:Box20:In
NumberOfControlPoints:0
-CONNECTION
-Box23:Out:Box12:In1
-NumberOfControlPoints:0
-CONNECTION
-Box20:Out:Box12:In2
-NumberOfControlPoints:0
-CONNECTION
-Box12:Widget:Box26:Widget3
-NumberOfControlPoints:0
APP_END
include creaMaracasVisu
include vtk
include wx
-include PackRecalage
include wxvtk
include std
new LayoutTab Box26
set Box26.WinTitle "2D-Compare"
-new CompareImagesWidget Box27
- set Box27.WinTitle "2Dt-Comparing"
-
new LayoutSplit Box28
set Box28.Orientation "H"
set Box28.Proportion "50"
new vtkImageDataPointerRelay Box20
-new CompareImages_3DwithPlanes_Widget Box12
- set Box12.WinTitle "3D planes Comparing"
-
-connect Box27.Widget Box26.Widget2
-connect Box23.Out Box27.In1
connect viewerResult.Widget Box28.Widget2
connect Box28.Widget Box26.Widget1
connect Box29.Widget Box28.Widget1
connect Box31.BoxChange Box19.In2
connect Box19.BoxChange viewerResult.BoxExecute
connect Box20.Out viewerResult.In
-connect Box20.Out Box27.In2
connect Box20.Out Box31.In
-connect Box23.Out Box12.In1
-connect Box20.Out Box12.In2
-connect Box12.Widget Box26.Widget3
# Complex input ports
input BoxExecute Box19.In3 " "
COMPLEXOUTPUTS:1
COMPLEX_PORT
Out
--337.715913:-303.921781:-900.000000
+-65.464450:-75.973706:-900.000000
FIN_COMPLEX_PORT
COMPLEXINPUTS:5
COMPLEX_PORT
SliceZ
--319.498823:204.633310:-900.000000
+-51.952410:173.796700:-900.000000
FIN_COMPLEX_PORT
COMPLEX_PORT
BoxExecute
--396.389512:203.237945:-900.000000
+-224.015082:176.838257:-900.000000
FIN_COMPLEX_PORT
COMPLEX_PORT
ConvolutionFactor
--365.379250:201.941952:-900.000000
+-185.240206:177.095187:-900.000000
FIN_COMPLEX_PORT
COMPLEX_PORT
ConvolutionOnOff
--235.808531:201.387474:-900.000000
+68.241331:192.455339:-900.000000
FIN_COMPLEX_PORT
COMPLEX_PORT
In
--337.831050:201.681709:-900.000000
+-93.800325:177.056790:-900.000000
FIN_COMPLEX_PORT
-BOXES:2
+BOXES:3
BOX
vtk:SliceImage:imgslice1
ISEXEC:FALSE
--342.315734:101.785328:-900.000000
--296.740734:91.785328:-900.000000
+-82.569259:56.669305:-900.000000
+-36.994259:46.669305:-900.000000
FIN_BOX
BOX
PackRecalage:ImageConvolution:convol1
ISEXEC:FALSE
--346.736688:-26.263667:-900.000000
--275.561688:-36.263667:-900.000000
+-70.912371:-12.329537:-900.000000
+0.262629:-22.329537:-900.000000
FIN_BOX
-CONNECTIONS:7
+BOX
+std:MagicBox:Box02
+ISEXEC:FALSE
+-216.369046:108.764774:-900.000000
+-170.794046:98.764774:-900.000000
+FIN_BOX
+CONNECTIONS:9
CONNECTION
imgslice1:Out:convol1:In
NumberOfControlPoints:0
In:In:imgslice1:In
NumberOfControlPoints:0
CONNECTION
-BoxExecute:BoxExecute:convol1:BoxExecute
+BoxExecute:BoxExecute:Box02:In
+NumberOfControlPoints:0
+CONNECTION
+Box02:BoxChange:convol1:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box02:BoxChange:imgslice1:BoxExecute
NumberOfControlPoints:0
APP_END
include itkvtk
include vtk
include PackRecalage
+include std
define CompareImagesWidget_base_2Dt_B PackRecalage
new ImageConvolution convol1
+new MagicBox Box02
+
connect imgslice1.Out convol1.In
+connect Box02.BoxChange convol1.BoxExecute
+connect Box02.BoxChange imgslice1.BoxExecute
# Complex input ports
input SliceZ imgslice1.Z " "
input ConvolutionFactor convol1.Factor " "
input ConvolutionOnOff convol1.On " "
input In imgslice1.In " "
-input BoxExecute convol1.BoxExecute " "
+input BoxExecute Box02.In " "
# Complex output ports
output Out convol1.Out " "