-# ---------------------------------------------------------------------
-#
-# 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
include std
include itkvtk
-include creaMaracasVisu
include wx
-include PackRecalage
-include std
include vtk
include creaImageIO
-include wxvtk
+include PackRecalage
+include std
author "info-dev@creatis.insa-lyon.fr"
description "Recalage3D 1-point"
category "example"
-new ViewerNV viewer
- set viewer.nTypeView "5"
-
-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"
-
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 "1. 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 "2. Registration"
new vtkImageDataPointerRelay Box22
new vtkImageDataPointerRelay Box23
new ImagesChooserDialogBox Box24
+ set Box24.Title "Fix Image"
new ImagesChooserDialogBox Box25
+ set Box25.Title "Move Image"
-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 LayoutTab Box38
-
-new LayoutTab Box39
-
-
-connect viewer2.Point transform.CenterPoint
-
-connect sdrAngleX.Out transform.AngleX
-
-connect sdrAngleY.Out transform.AngleY
-
-connect sdrAngleZ.Out transform.AngleZ
-
-connect sdrScaleX.Out transform.ScaleX
-
-connect sdrScaleY.Out transform.ScaleY
-
-connect sdrScaleZ.Out transform.ScaleZ
-
-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
+new Recalage3D1PointWidget Box52
-connect reslicer.Out viewerResult.In
+new CompareImagesWidget3D Box20
+ set Box20.WinTitle "1. Compare 3D"
-connect mult3.BoxChange viewerResult.BoxExecute
+new CompareImages_3DwithPlanes_Widget Box11
+ set Box11.WinTitle "2. Planes 3D"
-connect viewer.Widget imagesLayout.Widget1
+new LayoutSplit Box12
+ set Box12.Orientation "H"
-connect viewer2.Widget imagesLayout.Widget2
+new LayoutTab Box13
-connect sdrAngleX.Widget toolsLayout.Widget1
+new CompareImagesWidget Box14
+ set Box14.WinTitle "2D+t"
-connect sdrAngleY.Widget toolsLayout.Widget2
+new LayoutTab Box15
+ set Box15.WinHeight "800"
+ set Box15.WinWidth "1200"
-connect sdrAngleZ.Widget toolsLayout.Widget3
+new LoadHola Box27
-connect imagesLayout.Widget main.Widget1
+new Getting3D1Point Box28
+ set Box28.Title "2. Move Image"
-connect resultLayout.Widget main.Widget2
+new Getting3D1Point Box29
+ set Box29.Title "1. Fix Image"
-connect Box22.Out viewer2.In
+new MultipleInputs Box26
-connect Box22.Out reslicer.In
-connect Box24.Out Box22.In
+connect Box22.Out Box52.Image1
-connect Box23.Out viewer.In
+connect Box52.Out Box20.Image2
-connect Box25.Out Box23.In
+connect Box52.BoxChange Box20.BoxExecute
-connect Box27.Widget Box26.Widget2
+connect Box52.Widget resultLayout.Widget2
-connect Box26.Widget resultLayout.Widget1
+connect Box23.Out Box11.In1
-connect reslicer.Out Box27.In2
+connect Box52.Out Box11.In2
-connect Box23.Out Box27.In1
+connect Box20.Widget Box12.Widget1
-connect viewerResult.Widget Box28.Widget2
+connect Box11.Widget Box13.Widget1
-connect Box28.Widget Box26.Widget1
+connect Box13.Widget Box12.Widget2
-connect Box29.Widget Box28.Widget1
+connect Box12.Widget resultLayout.Widget1
-connect sdrScaleX.Widget Box33.Widget1
+connect Box23.Out Box20.Image1
-connect sdrScaleY.Widget Box33.Widget2
+connect Box52.Out Box14.In2
-connect sdrScaleZ.Widget Box33.Widget3
+connect Box23.Out Box14.In1
-connect Box33.Widget Box32.Widget2
+connect Box52.BoxChange Box13.BoxExecute
-connect toolsLayout.Widget Box32.Widget1
+connect imagesLayout.Widget Box15.Widget1
-connect Box32.Widget resultLayout.Widget2
+connect resultLayout.Widget Box15.Widget2
-connect TranslateX.Widget Box37.Widget1
+connect Box20.Point Box11.Point
-connect TranslateY.Widget Box37.Widget2
+connect Box20.BoxChange Box11.BoxExecute
-connect TranslateZ.Widget Box37.Widget3
+connect Box27.Out Box22.In
-connect Box37.Widget Box32.Widget3
+connect Box27.Out Box23.In
-connect Box31.Widget Box38.Widget2
+connect Box29.Widget imagesLayout.Widget1
-connect Box38.Widget Box29.Widget2
+connect Box28.Widget imagesLayout.Widget2
-connect Box39.Widget Box29.Widget1
+connect Box27.Out Box29.Image
-connect Box30.Widget Box39.Widget1
+connect Box27.Out Box28.Image
-connect Box23.Out Box30.In
+connect Box29.BoxChange Box26.In1
-connect viewerResult.Renderer1 Box30.vtkRenderer
+connect Box28.BoxChange Box26.In2
-connect Box30.BoxChange mult3.In3
+connect Box26.BoxChange Box52.BoxExecute
-connect viewerResult.Renderer1 Box31.vtkRenderer
+connect Box29.Point Box52.CenterPoint
-connect Box31.BoxChange mult3.In4
+connect Box28.Point Box52.OriginPoint
-connect reslicer.Out Box31.In
+connect Box29.Point Box20.CenterPoint
# Complex input ports
-exec main
+exec Box15