]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs
2020 Feature Comparing Images in XY XZ YZ planes
[creaRigidRegistration.git] / PackRecalage / bbs / appli / ExampleRecalage3D1Point.bbs
index bd468474047eb571a5dd0ea3b6ed7a19fa421469..03e6efc84c53d5ca55981aa5578545c0d1d3610b 100644 (file)
@@ -1,29 +1,6 @@
-# ---------------------------------------------------------------------
-#
-# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-#                        pour la Santé)
-# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
-#
-#  This software is governed by the CeCILL-B license under French law and 
-#  abiding by the rules of distribution of free software. You can  use, 
-#  modify and/ or redistribute the software under the terms of the CeCILL-B 
-#  license as circulated by CEA, CNRS and INRIA at the following URL 
-#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
-#  or in the file LICENSE.txt.
-#
-#  As a counterpart to the access to the source code and  rights to copy,
-#  modify and redistribute granted by the license, users are provided only
-#  with a limited warranty  and the software's author,  the holder of the
-#  economic rights,  and the successive licensors  have only  limited
-#  liability. 
-#
-#  The fact that you are presently reading this means that you have had
-#  knowledge of the CeCILL-B license and that you accept its terms.
-# ------------------------------------------------------------------------   
-
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBS BlackBox Script
-# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs
+# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
@@ -33,87 +10,28 @@ include std
 include itkvtk
 include creaMaracasVisu
 include wx
-include PackRecalage
-include std
 include vtk
 include creaImageIO
-include wxvtk
+include PackRecalage
 
 author "info-dev@creatis.insa-lyon.fr"
 description "Recalage3D 1-point"
 category "example"
 
 new ViewerNV viewer
-  set viewer.nTypeView "5"
+  set viewer.nTypeView "6 1 2 0"
 
 new ViewerNV viewer2
-  set viewer2.nTypeView "5"
-
-new Slider sdrAngleX
-  set sdrAngleX.In "0"
-  set sdrAngleX.Max "180"
-  set sdrAngleX.Min "-180"
-  set sdrAngleX.Title "Rotation angle in X Axis"
-
-new Slider sdrAngleY
-  set sdrAngleY.In "0"
-  set sdrAngleY.Max "180"
-  set sdrAngleY.Min "-180"
-  set sdrAngleY.Title "Rotation angle in Y Axis"
-
-new Slider sdrAngleZ
-  set sdrAngleZ.In "0"
-  set sdrAngleZ.Max "180"
-  set sdrAngleZ.Min "-180"
-  set sdrAngleZ.Title "Rotation angle in Z Axis"
-
-new Slider sdrScaleX
-  set sdrScaleX.In "100"
-  set sdrScaleX.Max "300"
-  set sdrScaleX.Min "10"
-  set sdrScaleX.Title "Scale in X Axis"
-
-new Slider sdrScaleY
-  set sdrScaleY.In "100"
-  set sdrScaleY.Max "300"
-  set sdrScaleY.Min "10"
-  set sdrScaleY.Title "Scale in Y Axis"
-
-new Slider sdrScaleZ
-  set sdrScaleZ.In "100"
-  set sdrScaleZ.Max "300"
-  set sdrScaleZ.Min "10"
-  set sdrScaleZ.Title "Scale in Z Axis"
-
-new Transform3D1PointBox transform
-
-new ReSlicerBox reslicer
-
-new MultipleInputs mult
-
-new MultipleInputs mult2
-
-new MultipleInputs mult3
-
-new ViewerNV viewerResult
-  set viewerResult.nTypeView "5"
+  set viewer2.nTypeView "6 1 2 0"
 
 new LayoutSplit imagesLayout
-  set imagesLayout.Orientation "v"
+  set imagesLayout.Orientation "H"
   set imagesLayout.Proportion "50"
-
-new LayoutLine toolsLayout
-  set toolsLayout.Orientation "v"
-  set toolsLayout.WinTitle "Rotation"
+  set imagesLayout.WinTitle "Input Images"
 
 new LayoutSplit resultLayout
-  set resultLayout.Proportion "70"
-
-new LayoutSplit main
-  set main.Orientation "h"
-  set main.Proportion "25"
-  set main.WinHeight "800"
-  set main.WinWidth "1200"
+  set resultLayout.Proportion "80"
+  set resultLayout.WinTitle "Registration"
 
 new vtkImageDataPointerRelay Box22
 
@@ -123,169 +41,95 @@ new ImagesChooserDialogBox Box24
 
 new ImagesChooserDialogBox Box25
 
-new LayoutTab Box26
-  set Box26.WinTitle "2D-Compare"
-
-new CompareImagesWidget Box27
-  set Box27.WinTitle "2D-Comparing"
-
-new LayoutSplit Box28
-  set Box28.Orientation "H"
-  set Box28.Proportion "50"
-  set Box28.WinTitle "3D-Comparing"
-
-new LayoutLine Box29
-
-new IsoSurfaceWidget Box30
-  set Box30.Title "Reference image"
-
-new IsoSurfaceWidget Box31
-  set Box31.Title "Registration image"
-
-new LayoutTab Box32
-
-new LayoutLine Box33
-  set Box33.WinTitle "Scale"
-
-new Slider TranslateZ
-
-new Slider TranslateY
-
-new Slider TranslateX
-
-new LayoutLine Box37
-  set Box37.WinTitle "Translate"
+new Recalage3D1PointWidget Box52
 
-new LayoutTab Box38
+new CompareImagesWidget3D Box20
 
-new LayoutTab Box39
+new CompareImages_3DwithPlanes_Widget Box11
+  set Box11.WinTitle "3D Planes"
 
+new LayoutSplit Box12
+  set Box12.Orientation "H"
 
-connect viewer2.Point transform.CenterPoint
+new LayoutTab Box13
 
-connect sdrAngleX.Out transform.AngleX
+new CompareImagesWidget Box14
+  set Box14.WinTitle "2D+t"
 
-connect sdrAngleY.Out transform.AngleY
+new LayoutTab Box15
+  set Box15.WinHeight "800"
+  set Box15.WinWidth "1200"
 
-connect sdrAngleZ.Out transform.AngleZ
+new LayoutTab Box16
 
-connect sdrScaleX.Out transform.ScaleX
+new LayoutTab Box17
 
-connect sdrScaleY.Out transform.ScaleY
+new LayoutLine Box18
+  set Box18.WinTitle "Move Image"
 
-connect sdrScaleZ.Out transform.ScaleZ
+new LayoutLine Box19
+  set Box19.WinTitle "Fix Image"
 
-connect viewer.Point reslicer.Origin
-
-connect transform.Out reslicer.Transform
-
-connect viewer.BoxChange mult.In1
-
-connect viewer2.BoxChange mult.In2
-
-connect sdrAngleX.BoxChange mult.In3
-
-connect sdrAngleY.BoxChange mult.In4
-
-connect sdrAngleZ.BoxChange mult.In5
-
-connect sdrScaleX.BoxChange mult2.In1
-
-connect sdrScaleY.BoxChange mult2.In2
-
-connect sdrScaleZ.BoxChange mult2.In3
-
-connect mult.BoxChange mult3.In1
-
-connect mult2.BoxChange mult3.In2
-
-connect mult3.BoxChange transform.BoxExecute
-
-connect mult3.BoxChange reslicer.BoxExecute
-
-connect reslicer.Out viewerResult.In
-
-connect mult3.BoxChange viewerResult.BoxExecute
-
-connect viewer.Widget imagesLayout.Widget1
-
-connect viewer2.Widget imagesLayout.Widget2
-
-connect sdrAngleX.Widget toolsLayout.Widget1
-
-connect sdrAngleY.Widget toolsLayout.Widget2
-
-connect sdrAngleZ.Widget toolsLayout.Widget3
-
-connect imagesLayout.Widget main.Widget1
-
-connect resultLayout.Widget main.Widget2
 
 connect Box22.Out viewer2.In
 
-connect Box22.Out reslicer.In
-
-connect Box24.Out Box22.In
-
 connect Box23.Out viewer.In
 
-connect Box25.Out Box23.In
+connect Box22.Out Box52.Image1
 
-connect Box27.Widget Box26.Widget2
+connect Box23.Out Box52.Image2
 
-connect Box26.Widget resultLayout.Widget1
+connect Box52.Out Box20.Image2
 
-connect reslicer.Out Box27.In2
+connect Box52.BoxChange Box20.BoxExecute
 
-connect Box23.Out Box27.In1
+connect Box52.Widget resultLayout.Widget2
 
-connect viewerResult.Widget Box28.Widget2
+connect Box23.Out Box11.In1
 
-connect Box28.Widget Box26.Widget1
+connect Box52.Out Box11.In2
 
-connect Box29.Widget Box28.Widget1
+connect Box20.Widget Box12.Widget1
 
-connect sdrScaleX.Widget Box33.Widget1
+connect Box11.Widget Box13.Widget1
 
-connect sdrScaleY.Widget Box33.Widget2
+connect Box13.Widget Box12.Widget2
 
-connect sdrScaleZ.Widget Box33.Widget3
+connect Box12.Widget resultLayout.Widget1
 
-connect Box33.Widget Box32.Widget2
+connect Box23.Out Box20.Image1
 
-connect toolsLayout.Widget Box32.Widget1
+connect Box52.Out Box14.In2
 
-connect Box32.Widget resultLayout.Widget2
+connect Box23.Out Box14.In1
 
-connect TranslateX.Widget Box37.Widget1
+connect Box52.BoxChange Box13.BoxExecute
 
-connect TranslateY.Widget Box37.Widget2
+connect imagesLayout.Widget Box15.Widget1
 
-connect TranslateZ.Widget Box37.Widget3
+connect resultLayout.Widget Box15.Widget2
 
-connect Box37.Widget Box32.Widget3
+connect Box16.Widget imagesLayout.Widget1
 
-connect Box31.Widget Box38.Widget2
+connect Box17.Widget imagesLayout.Widget2
 
-connect Box38.Widget Box29.Widget2
+connect viewer2.Widget Box18.Widget1
 
-connect Box39.Widget Box29.Widget1
+connect Box18.Widget Box17.Widget1
 
-connect Box30.Widget Box39.Widget1
+connect viewer.Widget Box19.Widget1
 
-connect Box23.Out Box30.In
+connect Box19.Widget Box16.Widget1
 
-connect viewerResult.Renderer1 Box30.vtkRenderer
+connect Box20.Point Box11.Point
 
-connect Box30.BoxChange mult3.In3
+connect Box20.BoxChange Box11.BoxExecute
 
-connect viewerResult.Renderer1 Box31.vtkRenderer
-
-connect Box31.BoxChange mult3.In4
+connect Box24.Out Box22.In
 
-connect reslicer.Out Box31.In
+connect Box25.Out Box23.In
 
 
 
 # Complex input ports
-exec main
+exec Box15