X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fbbs%2Fappli%2FExampleRecalage3D1Point.bbs;h=4d791c53db7c98625a388e2348b47e525818a594;hb=9e77cea52961ce9043c8f3e5f86024a1b6588355;hp=bd468474047eb571a5dd0ea3b6ed7a19fa421469;hpb=ab5334c59e38e205d1fd826dc7fed9454f5194ab;p=creaRigidRegistration.git diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs index bd46847..4d791c5 100644 --- a/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs +++ b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs @@ -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 @@ -31,89 +8,24 @@ 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 "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 +35,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 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 - -connect reslicer.Out viewerResult.In +new Recalage3D1PointWidget Box52 -connect mult3.BoxChange viewerResult.BoxExecute +new CompareImagesWidget3D Box20 -connect viewer.Widget imagesLayout.Widget1 +new CompareImages_3DwithPlanes_Widget Box11 + set Box11.WinTitle "3D Planes" -connect viewer2.Widget imagesLayout.Widget2 +new LayoutSplit Box12 + set Box12.Orientation "H" -connect sdrAngleX.Widget toolsLayout.Widget1 +new LayoutTab Box13 -connect sdrAngleY.Widget toolsLayout.Widget2 +new CompareImagesWidget Box14 + set Box14.WinTitle "2D+t" -connect sdrAngleZ.Widget toolsLayout.Widget3 +new LayoutTab Box15 + set Box15.WinHeight "800" + set Box15.WinWidth "1200" -connect imagesLayout.Widget main.Widget1 +new LoadHola Box27 -connect resultLayout.Widget main.Widget2 +new Getting3D1Point Box28 + set Box28.Title "Move Image" -connect Box22.Out viewer2.In +new Getting3D1Point Box29 + set Box29.Title "Fix Image" -connect Box22.Out reslicer.In +new MultipleInputs Box26 -connect Box24.Out Box22.In -connect Box23.Out viewer.In +connect Box22.Out Box52.Image1 -connect Box25.Out Box23.In +connect Box52.Out Box20.Image2 -connect Box27.Widget Box26.Widget2 +connect Box52.BoxChange Box20.BoxExecute -connect Box26.Widget resultLayout.Widget1 +connect Box52.Widget resultLayout.Widget2 -connect reslicer.Out Box27.In2 +connect Box23.Out Box11.In1 -connect Box23.Out Box27.In1 +connect Box52.Out Box11.In2 -connect viewerResult.Widget Box28.Widget2 +connect Box20.Widget Box12.Widget1 -connect Box28.Widget Box26.Widget1 +connect Box11.Widget Box13.Widget1 -connect Box29.Widget Box28.Widget1 +connect Box13.Widget Box12.Widget2 -connect sdrScaleX.Widget Box33.Widget1 +connect Box12.Widget resultLayout.Widget1 -connect sdrScaleY.Widget Box33.Widget2 +connect Box23.Out Box20.Image1 -connect sdrScaleZ.Widget Box33.Widget3 +connect Box52.Out Box14.In2 -connect Box33.Widget Box32.Widget2 +connect Box23.Out Box14.In1 -connect toolsLayout.Widget Box32.Widget1 +connect Box52.BoxChange Box13.BoxExecute -connect Box32.Widget resultLayout.Widget2 +connect imagesLayout.Widget Box15.Widget1 -connect TranslateX.Widget Box37.Widget1 +connect resultLayout.Widget Box15.Widget2 -connect TranslateY.Widget Box37.Widget2 +connect Box20.Point Box11.Point -connect TranslateZ.Widget Box37.Widget3 +connect Box20.BoxChange Box11.BoxExecute -connect Box37.Widget Box32.Widget3 +connect Box27.Out Box22.In -connect Box31.Widget Box38.Widget2 +connect Box27.Out Box23.In -connect Box38.Widget Box29.Widget2 +connect Box29.Widget imagesLayout.Widget1 -connect Box39.Widget Box29.Widget1 +connect Box28.Widget imagesLayout.Widget2 -connect Box30.Widget Box39.Widget1 +connect Box27.Out Box29.Image -connect Box23.Out Box30.In +connect Box27.Out Box28.Image -connect viewerResult.Renderer1 Box30.vtkRenderer +connect Box29.BoxChange Box26.In1 -connect Box30.BoxChange mult3.In3 +connect Box28.BoxChange Box26.In2 -connect viewerResult.Renderer1 Box31.vtkRenderer +connect Box26.BoxChange Box52.BoxExecute -connect Box31.BoxChange mult3.In4 +connect Box29.Point Box52.CenterPoint -connect reslicer.Out Box31.In +connect Box28.Point Box52.OriginPoint # Complex input ports -exec main +exec Box15