From 1a574b510e27eb5b5f00bd37bf451cedd1b0a8d4 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 13 Apr 2012 15:28:12 +0000 Subject: [PATCH] no message --- PackRecalage/bbs/appli/ExampleRecalage.bbg | 227 +++++ PackRecalage/bbs/appli/ExampleRecalage.bbs | 166 ++-- .../bbs/appli/ExampleRecalage3D1Point.bbg | 345 +++++++ .../bbs/appli/ExampleRecalage3D1Point.bbs | 242 ++--- .../bbs/appli/ExampleRecalage3D2Points.bbg | 257 ++++++ .../bbs/appli/ExampleRecalage3D2Points.bbs | 175 ++-- .../bbs/appli/ExampleRecalage3D3Points.bbg | 233 +++++ .../bbs/appli/ExampleRecalage3D3Points.bbs | 161 ++-- PackRecalage/bbs/appli/Recalage.bbg | 107 +++ PackRecalage/bbs/appli/Recalage.bbs | 49 +- PackRecalage/bbs/appli/Recalage2D.bbg | 854 ++++++++++++++++++ PackRecalage/bbs/appli/Recalage2D.bbs | 501 ++++------ 12 files changed, 2549 insertions(+), 768 deletions(-) create mode 100644 PackRecalage/bbs/appli/ExampleRecalage.bbg create mode 100644 PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg create mode 100644 PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbg create mode 100644 PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbg create mode 100644 PackRecalage/bbs/appli/Recalage.bbg create mode 100644 PackRecalage/bbs/appli/Recalage2D.bbg diff --git a/PackRecalage/bbs/appli/ExampleRecalage.bbg b/PackRecalage/bbs/appli/ExampleRecalage.bbg new file mode 100644 index 0000000..f6632a2 --- /dev/null +++ b/PackRecalage/bbs/appli/ExampleRecalage.bbg @@ -0,0 +1,227 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage.bbg +# ---------------------------------- + +APP_START +CATEGORY:demo +DESCRIPTION:Example of posible Recalage implementation +AUTHOR:jn.trillos44@uniandes.edu.co +COMPLEXBOX:FALSE +BOXES:17 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +92.220129:-15.228476:900.000000 +152.860129:-25.228476:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +59.495469:-86.803124:900.000000 +107.815469:-96.803124:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-153.204660:-21.747512:900.000000 +-92.564660:-31.747512:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints2 +ISEXEC:FALSE +-105.742403:-83.848678:900.000000 +-34.567403:-93.848678:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +PackRecalage:CalculateVectorBox:vector1 +ISEXEC:FALSE +-53.669092:-177.559027:900.000000 +17.505908:-187.559027:900.000000 +FIN_BOX +BOX +PackRecalage:Transform2DBox:transform +ISEXEC:FALSE +-3.292614:-50.749981:900.000000 +42.282386:-60.749981:900.000000 +PORT +CenterPoint:"0,0,0" +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +-25.556440:-86.316016:900.000000 +20.018560:-96.316016:900.000000 +PORT +Origin:"0,0,0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer3 +ISEXEC:FALSE +52.692345:-315.936800:900.000000 +113.332345:-325.936800:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:CommandButton:butExec +ISEXEC:FALSE +50.645481:-275.637849:900.000000 +96.220481:-285.637849:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:tab1 +ISEXEC:FALSE +148.691988:-366.865967:900.000000 +194.266988:-376.865967:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:hello +ISEXEC:FALSE +100.535059:-340.173265:900.000000 +146.110059:-350.173265:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:LayoutSplit:tab2 +ISEXEC:FALSE +-115.873957:-338.425352:900.000000 +-70.298957:-348.425352:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:main +ISEXEC:TRUE +8.314930:-406.976389:900.000000 +65.874930:-416.976389:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box17 +ISEXEC:FALSE +-89.726178:16.178321:900.000000 +-18.551178:6.178321:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box18 +ISEXEC:FALSE +-49.016755:47.142434:900.000000 +22.158245:37.142434:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box19 +ISEXEC:FALSE +34.379145:48.196630:900.000000 +105.554145:38.196630:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box20 +ISEXEC:FALSE +57.134013:15.044382:900.000000 +128.309013:5.044382:900.000000 +FIN_BOX +CONNECTIONS:30 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer2:Renderer1:showNpoints2:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:showNpoints2:In +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:showNpoints2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsX:vector1:PointsX1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsX:vector1:PointsX2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsY:vector1:PointsY1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsY:vector1:PointsY2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsZ:vector1:PointsZ1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsZ:vector1:PointsZ2 +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:viewer3:In +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:hello:Widget1 +NumberOfControlPoints:0 +CONNECTION +butExec:Widget:hello:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello:Widget:tab1:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:tab1:Widget2 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:Widget:tab2:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:tab2:Widget2 +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:viewer3:BoxExecute +NumberOfControlPoints:0 +CONNECTION +tab1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +tab2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:showNpoints2:Image +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box20:In +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/ExampleRecalage.bbs b/PackRecalage/bbs/appli/ExampleRecalage.bbs index ea5ea42..9e593c8 100644 --- a/PackRecalage/bbs/appli/ExampleRecalage.bbs +++ b/PackRecalage/bbs/appli/ExampleRecalage.bbs @@ -1,142 +1,98 @@ -description "Example of posible Recalage implementation" -author "jn.trillos44@uniandes.edu.co" -category "demo" - -load vtk -include wxvtk -load std -load itk -include vtk +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include PackRecalage include wx -load itkvtk -load creaMaracasVisu -load PackRecalage - -//File selection and file reader for the first image - -new FileSelector openFileDialog - set openFileDialog.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader - connect openFileDialog.Out reader.In - -//File selection and file reader for the second image - -new FileSelector openFileDialog2 - set openFileDialog2.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader2 - connect openFileDialog2.Out reader2.In +include vtk +include creaImageIO -//Viewer NV and ShowPoints for the first image +author "jn.trillos44@uniandes.edu.co" +description "Example of posible Recalage implementation" +category "demo" new ViewerNV viewer - connect reader.Out viewer.In set viewer.nTypeView "5" new ShowNPoints showNpoints - connect reader.Out showNpoints.Image - connect viewer.Renderer1 showNpoints.Renderer - connect viewer.Point showNpoints.In - connect viewer.BoxChange showNpoints.BoxExecute - set showNpoints.Radio 10 - -//Viewer NV and ShowPoints for the second image + set showNpoints.Radio "10" new ViewerNV viewer2 - connect reader2.Out viewer2.In set viewer2.nTypeView "5" new ShowNPoints showNpoints2 - connect reader2.Out showNpoints2.Image - connect viewer2.Renderer1 showNpoints2.Renderer - connect viewer2.Point showNpoints2.In - connect viewer2.BoxChange showNpoints2.BoxExecute - set showNpoints2.Radio 10 - -///////////////////////////////////////////////////// -#Calculate Vector Box -///////////////////////////////////////////////////// + set showNpoints2.Radio "10" new CalculateVectorBox vector1 - connect showNpoints.lstPointsX vector1.PointsX1 - connect showNpoints2.lstPointsX vector1.PointsX2 - connect showNpoints.lstPointsY vector1.PointsY1 - connect showNpoints2.lstPointsY vector1.PointsY2 - connect showNpoints.lstPointsZ vector1.PointsZ1 - connect showNpoints2.lstPointsZ vector1.PointsZ2 - -//////////////////////////////////////////////////// - -/////////////////////////////////////////////////// -#Transformation Boxes -////////////////////////////////////////////////// new Transform2DBox transform - //connect vector1.Origin transform.CenterPoint - set transform.CenterPoint "0,0,0" - //connect vector1.OutAngle transform.Angle - //connect vector1.OutScaleX transform.ScaleX - //connect vector1.OutScaleY transform.ScaleY - //connect vector1.OutScaleZ transform.ScaleZ - //connect vector1.TransformAxis transform.Axis - //set transform.3D false - new ReSlicerBox reslice1 -// connect vector1.OriginReslicer reslice1.Origin - set reslice1.Origin "0,0,0" - connect transform.Out reslice1.Transform - connect reader2.Out reslice1.In - -//ViewerNV and ComandButton for the result image - new ViewerNV viewer3 set viewer3.nTypeView "5" - connect reslice1.Out viewer3.In new CommandButton butExec - //set butExec.Label "Execute" - -//Tab for the first image new LayoutSplit tab1 - set tab1.Orientation H - -//////////////////// + set tab1.Orientation "H" new LayoutSplit hello - set hello.Orientation V - - connect showNpoints.Widget hello.Widget1 - connect butExec.Widget hello.Widget2 - - connect hello.Widget tab1.Widget1 - connect viewer.Widget tab1.Widget2 - -//Tab for the second image + set hello.Orientation "V" new LayoutSplit tab2 - set tab2.Orientation H - connect showNpoints2.Widget tab2.Widget1 - connect viewer2.Widget tab2.Widget2 - -//Tab for the result image - -//new LayoutSplit result - //set result.Orientation H - //connect butExec.Widget result.Widget1 - //connect viewer3.Widget result.Widget2 - connect butExec.BoxChange viewer3.BoxExecute - - -//Main window + set tab2.Orientation "H" new LayoutTab main -set main.Orientation H + set main.Orientation "H" + +new vtkImageDataPointerRelay Box17 + +new ImagesChooserDialogBox Box18 + +new ImagesChooserDialogBox Box19 + +new vtkImageDataPointerRelay Box20 + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer2.Renderer1 showNpoints2.Renderer +connect viewer2.Point showNpoints2.In +connect viewer2.BoxChange showNpoints2.BoxExecute +connect showNpoints.lstPointsX vector1.PointsX1 +connect showNpoints2.lstPointsX vector1.PointsX2 +connect showNpoints.lstPointsY vector1.PointsY1 +connect showNpoints2.lstPointsY vector1.PointsY2 +connect showNpoints.lstPointsZ vector1.PointsZ1 +connect showNpoints2.lstPointsZ vector1.PointsZ2 +connect transform.Out reslice1.Transform +connect reslice1.Out viewer3.In +connect showNpoints.Widget hello.Widget1 +connect butExec.Widget hello.Widget2 +connect hello.Widget tab1.Widget1 +connect viewer.Widget tab1.Widget2 +connect showNpoints2.Widget tab2.Widget1 +connect viewer2.Widget tab2.Widget2 +connect butExec.BoxChange viewer3.BoxExecute connect tab1.Widget main.Widget1 connect tab2.Widget main.Widget2 -//connect result.Widget main.Widget3 +connect Box17.Out viewer2.In +connect Box17.Out reslice1.In +connect Box17.Out showNpoints2.Image +connect Box18.Out Box17.In +connect Box20.Out viewer.In +connect Box20.Out showNpoints.Image +connect Box19.Out Box20.In exec main diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg new file mode 100644 index 0000000..de6a7e2 --- /dev/null +++ b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg @@ -0,0 +1,345 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:Recalage3D 1-point +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:22 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +90.360135:-42.468343:900.000000 +151.000135:-52.468343:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-47.024134:-12.908709:900.000000 +13.615866:-22.908709:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:Slider:sdrAngleX +ISEXEC:FALSE +-105.651195:-72.615731:900.000000 +-54.251195:-82.615731:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in X Axis" +FIN_BOX +BOX +wx:Slider:sdrAngleY +ISEXEC:FALSE +-128.173652:-36.516009:900.000000 +-76.773652:-46.516009:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in Y Axis" +FIN_BOX +BOX +wx:Slider:sdrAngleZ +ISEXEC:FALSE +11.379897:-45.700867:900.000000 +62.779897:-55.700867:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Rotation angle in Z Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleX +ISEXEC:FALSE +-237.075654:-45.586714:900.000000 +-185.675654:-55.586714:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in X Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleY +ISEXEC:FALSE +-256.813675:-85.339132:900.000000 +-205.413675:-95.339132:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in Y Axis" +FIN_BOX +BOX +wx:Slider:sdrScaleZ +ISEXEC:FALSE +-184.520956:-37.861589:900.000000 +-133.120956:-47.861589:900.000000 +PORT +In:"100" +PORT +Max:"300" +PORT +Min:"10" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Scale in Z Axis" +FIN_BOX +BOX +PackRecalage:Transform3D1PointBox:transform +ISEXEC:FALSE +-82.895553:-211.980656:900.000000 +-11.720553:-221.980656:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslicer +ISEXEC:FALSE +36.901778:-161.414847:900.000000 +82.476778:-171.414847:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult +ISEXEC:FALSE +34.133463:-99.687937:900.000000 +79.708463:-109.687937:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult2 +ISEXEC:FALSE +-252.787883:-121.560922:900.000000 +-207.212883:-131.560922:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult3 +ISEXEC:FALSE +-28.715453:-141.266703:900.000000 +16.859547:-151.266703:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewerResult +ISEXEC:FALSE +46.286271:-334.890606:900.000000 +106.926271:-344.890606:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:LayoutSplit:imagesLayout +ISEXEC:FALSE +29.799055:-289.038465:900.000000 +75.374055:-299.038465:900.000000 +PORT +Orientation:"v" +PORT +Proportion:"50" +FIN_BOX +BOX +wx:LayoutLine:toolsLayout +ISEXEC:FALSE +-201.316787:-213.929071:900.000000 +-143.756787:-223.929071:900.000000 +PORT +Orientation:"v" +FIN_BOX +BOX +wx:LayoutSplit:resultLayout +ISEXEC:FALSE +-43.885881:-366.917898:900.000000 +1.689119:-376.917898:900.000000 +PORT +Orientation:"v" +PORT +Proportion:"60" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:TRUE +-3.559422:-406.128515:900.000000 +42.015578:-416.128515:900.000000 +PORT +Orientation:"h" +PORT +Proportion:"50" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box22 +ISEXEC:FALSE +-80.407015:12.725826:900.000000 +-9.232015:2.725826:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box23 +ISEXEC:FALSE +85.109556:15.417152:900.000000 +156.284556:5.417152:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box24 +ISEXEC:FALSE +-44.746941:47.713068:900.000000 +26.428059:37.713068:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box25 +ISEXEC:FALSE +66.270272:48.049484:900.000000 +137.445272:38.049484:900.000000 +FIN_BOX +CONNECTIONS:40 +CONNECTION +viewer2:Point:transform:CenterPoint +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:Out:transform:AngleX +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:Out:transform:AngleY +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:Out:transform:AngleZ +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:Out:transform:ScaleX +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:Out:transform:ScaleY +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:Out:transform:ScaleZ +NumberOfControlPoints:0 +CONNECTION +viewer:Point:reslicer:Origin +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslicer:Transform +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:mult:In1 +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:mult:In2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:BoxChange:mult:In3 +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:BoxChange:mult:In4 +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:BoxChange:mult:In5 +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:BoxChange:mult2:In1 +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:BoxChange:mult2:In2 +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:BoxChange:mult2:In3 +NumberOfControlPoints:0 +CONNECTION +mult:BoxChange:mult3:In1 +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult3:In2 +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:reslicer:BoxExecute +NumberOfControlPoints:0 +CONNECTION +reslicer:Out:viewerResult:In +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:viewerResult:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:imagesLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:imagesLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleX:Widget:toolsLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrAngleY:Widget:toolsLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdrAngleZ:Widget:toolsLayout:Widget3 +NumberOfControlPoints:0 +CONNECTION +sdrScaleX:Widget:toolsLayout:Widget4 +NumberOfControlPoints:0 +CONNECTION +sdrScaleY:Widget:toolsLayout:Widget5 +NumberOfControlPoints:0 +CONNECTION +sdrScaleZ:Widget:toolsLayout:Widget6 +NumberOfControlPoints:0 +CONNECTION +viewerResult:Widget:resultLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +toolsLayout:Widget:resultLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +imagesLayout:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +resultLayout:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box22:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:reslicer:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box23:In +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs index b58ffd3..1dbc751 100644 --- a/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs +++ b/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs @@ -1,200 +1,148 @@ -description "Recalage3D 1-point" -author "info-dev@creatis.insa-lyon.fr" -category "example" - -load vtk -include wxvtk -load std -load itk -include vtk -include wx -load itkvtk -load creaMaracasVisu -load PackRecalage - -/////////////////////// -//Image Readers// -////////////////////// - -#Uncomment to use a FileReadeDialog for .mhd -#------------------------------------------------------- - -//File selection and file reader for the first image - -new FileSelector openFileDialog - set openFileDialog.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader - connect openFileDialog.Out reader.In - -//File selection and file reader for the second image - -new FileSelector openFileDialog2 - set openFileDialog2.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader2 - connect openFileDialog2.Out reader2.In - -#------------------------------------------------------- - - -#Uncomment to use a Gimmick Reader -#------------------------------------------------------- -/* -load creaImageIO - -new Gimmick reader +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D1Point.bbs +# ---------------------------------- -new Gimmick reader2 -*/ -#------------------------------------------------------ +# BBTK GEditor Script +# ---------------------- -/////////////////////// -//Image Viewers/// -////////////////////// +include std +include itkvtk +include creaMaracasVisu +include wx +include PackRecalage +include std +include vtk +include creaImageIO -//Viewer NV for the first image +author "info-dev@creatis.insa-lyon.fr" +description "Recalage3D 1-point" +category "example" new ViewerNV viewer - connect reader.Out viewer.In set viewer.nTypeView "5" -//Viewer NV for the second image - new ViewerNV viewer2 - connect reader2.Out viewer2.In set viewer2.nTypeView "5" -/////////////////////// -//Image Controls// -////////////////////// - new Slider sdrAngleX - set sdrAngleX.Max 180 - set sdrAngleX.Min -180 - set sdrAngleX.In 0 + set sdrAngleX.In "0" + set sdrAngleX.Max "180" + set sdrAngleX.Min "-180" + set sdrAngleX.ReactiveOnTrack "true" set sdrAngleX.Title "Rotation angle in X Axis" - set sdrAngleX.ReactiveOnTrack true new Slider sdrAngleY - set sdrAngleY.Max 180 - set sdrAngleY.Min -180 - set sdrAngleY.In 0 + set sdrAngleY.In "0" + set sdrAngleY.Max "180" + set sdrAngleY.Min "-180" + set sdrAngleY.ReactiveOnTrack "true" set sdrAngleY.Title "Rotation angle in Y Axis" - set sdrAngleY.ReactiveOnTrack true new Slider sdrAngleZ - set sdrAngleZ.Max 180 - set sdrAngleZ.Min -180 - set sdrAngleZ.In 0 + set sdrAngleZ.In "0" + set sdrAngleZ.Max "180" + set sdrAngleZ.Min "-180" + set sdrAngleZ.ReactiveOnTrack "true" set sdrAngleZ.Title "Rotation angle in Z Axis" - set sdrAngleZ.ReactiveOnTrack true new Slider sdrScaleX - set sdrScaleX.Max 300 - set sdrScaleX.Min 10 - set sdrScaleX.In 100 + set sdrScaleX.In "100" + set sdrScaleX.Max "300" + set sdrScaleX.Min "10" + set sdrScaleX.ReactiveOnTrack "true" set sdrScaleX.Title "Scale in X Axis" - set sdrScaleX.ReactiveOnTrack true new Slider sdrScaleY - set sdrScaleY.Max 300 - set sdrScaleY.Min 10 - set sdrScaleY.In 100 + set sdrScaleY.In "100" + set sdrScaleY.Max "300" + set sdrScaleY.Min "10" + set sdrScaleY.ReactiveOnTrack "true" set sdrScaleY.Title "Scale in Y Axis" - set sdrScaleY.ReactiveOnTrack true new Slider sdrScaleZ - set sdrScaleZ.Max 300 - set sdrScaleZ.Min 10 - set sdrScaleZ.In 100 + set sdrScaleZ.In "100" + set sdrScaleZ.Max "300" + set sdrScaleZ.Min "10" + set sdrScaleZ.ReactiveOnTrack "true" set sdrScaleZ.Title "Scale in Z Axis" - set sdrScaleZ.ReactiveOnTrack true - - -/////////////////////////////// -//Transformation Boxes// -////////////////////////////// new Transform3D1PointBox transform - 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 new ReSlicerBox reslicer - connect viewer.Point reslicer.Origin - connect reader2.Out reslicer.In - connect transform.Out reslicer.Transform - -/////////////////////////////////////////////// -//Multiple Inputs for image interaction// -/////////////////////////////////////////////// new MultipleInputs mult - 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 new MultipleInputs mult2 - connect sdrScaleX.BoxChange mult2.In1 - connect sdrScaleY.BoxChange mult2.In2 - connect sdrScaleZ.BoxChange mult2.In3 new MultipleInputs mult3 - connect mult.BoxChange mult3.In1 - connect mult2.BoxChange mult3.In2 - - connect mult3.BoxChange transform.BoxExecute - connect mult3.BoxChange reslicer.BoxExecute - -///////////////////////////////////////// -//Image Result Viewer // -//////////////////////////////////////// new ViewerNV viewerResult - connect reslicer.Out viewerResult.In - set viewerResult.nTypeView "5" - - connect mult3.BoxChange viewerResult.BoxExecute - -////////////////////////////////////// -//Interface Layouts // -////////////////////////////////////// + set viewerResult.nTypeView "5" new LayoutSplit imagesLayout set imagesLayout.Orientation "v" - set imagesLayout.Proportion 50 + set imagesLayout.Proportion "50" - connect viewer.Widget imagesLayout.Widget1 - connect viewer2.Widget imagesLayout.Widget2 - new LayoutLine toolsLayout set toolsLayout.Orientation "v" - connect sdrAngleX.Widget toolsLayout.Widget1 - connect sdrAngleY.Widget toolsLayout.Widget2 - connect sdrAngleZ.Widget toolsLayout.Widget3 - connect sdrScaleX.Widget toolsLayout.Widget4 - connect sdrScaleY.Widget toolsLayout.Widget5 - connect sdrScaleZ.Widget toolsLayout.Widget6 new LayoutSplit resultLayout set resultLayout.Orientation "v" - set resultLayout.Proportion 60 - - connect viewerResult.Widget resultLayout.Widget1 - connect toolsLayout.Widget resultLayout.Widget2 + set resultLayout.Proportion "60" new LayoutSplit main set main.Orientation "h" - set main.Proportion 50 - - connect imagesLayout.Widget main.Widget1 - connect resultLayout.Widget main.Widget2 + set main.Proportion "50" + +new vtkImageDataPointerRelay Box22 + +new vtkImageDataPointerRelay Box23 + +new ImagesChooserDialogBox Box24 + +new ImagesChooserDialogBox Box25 + + +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 +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 sdrScaleX.Widget toolsLayout.Widget4 +connect sdrScaleY.Widget toolsLayout.Widget5 +connect sdrScaleZ.Widget toolsLayout.Widget6 +connect viewerResult.Widget resultLayout.Widget1 +connect toolsLayout.Widget resultLayout.Widget2 +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 exec main - - \ No newline at end of file diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbg b/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbg new file mode 100644 index 0000000..36271c0 --- /dev/null +++ b/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbg @@ -0,0 +1,257 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:Recalage3D 2-point +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:18 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +123.530628:72.772107:900.000000 +184.170628:62.772107:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +85.324918:0.825321:900.000000 +133.644918:-9.174679:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-48.978811:50.481457:900.000000 +11.661189:40.481457:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints2 +ISEXEC:FALSE +-5.564085:4.444147:900.000000 +65.610915:-5.555853:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +PackRecalage:Transform3D2PointsBox:transform +ISEXEC:FALSE +-2.383924:-109.805909:900.000000 +68.791076:-119.805909:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +-159.170196:-133.022007:900.000000 +-113.595196:-143.022007:900.000000 +PORT +Origin:"0,0,0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer3 +ISEXEC:FALSE +-180.303832:-170.276615:900.000000 +-119.663832:-180.276615:900.000000 +PORT +nTypeView:"5 0" +FIN_BOX +BOX +wx:CommandButton:butExec +ISEXEC:FALSE +-183.892565:-53.998298:900.000000 +-138.317565:-63.998298:900.000000 +PORT +Label:"Execute" +FIN_BOX +BOX +wx:Slider:angle +ISEXEC:FALSE +41.318216:-87.556276:900.000000 +92.718216:-97.556276:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +FIN_BOX +BOX +wx:LayoutSplit:tab1 +ISEXEC:FALSE +146.938989:-258.047109:900.000000 +192.513989:-268.047109:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:hello +ISEXEC:FALSE +99.479764:-198.509475:900.000000 +145.054764:-208.509475:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:LayoutSplit:hello2 +ISEXEC:FALSE +-27.919993:-197.330592:900.000000 +17.655007:-207.330592:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:tab2 +ISEXEC:FALSE +-73.168110:-147.523924:900.000000 +-27.593110:-157.523924:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:main +ISEXEC:TRUE +-7.088115:-295.986578:900.000000 +50.471885:-305.986578:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box18 +ISEXEC:FALSE +-105.651195:131.386743:900.000000 +-34.476195:121.386743:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box19 +ISEXEC:FALSE +63.932518:122.176126:900.000000 +135.107518:112.176126:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box20 +ISEXEC:FALSE +-101.858588:104.296693:900.000000 +-30.683588:94.296693:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box21 +ISEXEC:FALSE +72.059533:99.420484:900.000000 +143.234533:89.420484:900.000000 +FIN_BOX +CONNECTIONS:36 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer2:Renderer1:showNpoints2:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:showNpoints2:In +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:showNpoints2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsX:transform:InX1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsX:transform:InX2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsY:transform:InY1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsY:transform:InY2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsZ:transform:InZ1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsZ:transform:InZ2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstLabels:transform:Labels1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstLabels:transform:Labels2 +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:viewer3:In +NumberOfControlPoints:0 +CONNECTION +angle:Out:transform:SecondAngle +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:hello:Widget1 +NumberOfControlPoints:0 +CONNECTION +butExec:Widget:hello2:Widget1 +NumberOfControlPoints:0 +CONNECTION +angle:Widget:hello2:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello2:Widget:hello:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello:Widget:tab1:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:tab1:Widget2 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:Widget:tab2:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:tab2:Widget2 +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:reslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:viewer3:BoxExecute +NumberOfControlPoints:0 +CONNECTION +tab1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +tab2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box20:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +Box20:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box21:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box21:Out:viewer:In +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs b/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs index 54dac47..07b8690 100644 --- a/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs +++ b/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs @@ -1,138 +1,109 @@ -description "Recalage3D 2-point" -author "info-dev@creatis.insa-lyon.fr" -category "example" - -load vtk -include wxvtk -load std -load itk -include vtk +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include PackRecalage include wx -load itkvtk -load creaMaracasVisu -load PackRecalage - -//File selection and file reader for the first image - -new FileSelector openFileDialog - set openFileDialog.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader - connect openFileDialog.Out reader.In - -//File selection and file reader for the second image - -new FileSelector openFileDialog2 - set openFileDialog2.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader2 - connect openFileDialog2.Out reader2.In +include creaImageIO +include vtk -//Viewer NV and ShowPoints for the first image +author "info-dev@creatis.insa-lyon.fr" +description "Recalage3D 2-point" +category "example" new ViewerNV viewer - connect reader.Out viewer.In set viewer.nTypeView "5" new ShowNPoints showNpoints - connect reader.Out showNpoints.Image - connect viewer.Renderer1 showNpoints.Renderer - connect viewer.Point showNpoints.In - connect viewer.BoxChange showNpoints.BoxExecute - set showNpoints.Radio 10 - -//Viewer NV and ShowPoints for the second image + set showNpoints.Radio "10" new ViewerNV viewer2 - connect reader2.Out viewer2.In set viewer2.nTypeView "5" new ShowNPoints showNpoints2 - connect reader2.Out showNpoints2.Image - connect viewer2.Renderer1 showNpoints2.Renderer - connect viewer2.Point showNpoints2.In - connect viewer2.BoxChange showNpoints2.BoxExecute - set showNpoints2.Radio 10 - -////////////////////////////////////////// -#Transform Box -////////////////////////////////////////// + set showNpoints2.Radio "10" new Transform3D2PointsBox transform - connect showNpoints.lstPointsX transform.InX1 - connect showNpoints2.lstPointsX transform.InX2 - connect showNpoints.lstPointsY transform.InY1 - connect showNpoints2.lstPointsY transform.InY2 - connect showNpoints.lstPointsZ transform.InZ1 - connect showNpoints2.lstPointsZ transform.InZ2 - - connect showNpoints.lstLabels transform.Labels1 - connect showNpoints2.lstLabels transform.Labels2 - -new ReSlicerBox reslice1 +new ReSlicerBox reslice1 set reslice1.Origin "0,0,0" - connect transform.Out reslice1.Transform - connect reader2.Out reslice1.In - -//ViewerNV and ComandButton for the result image - - new ViewerNV viewer3 set viewer3.nTypeView "5 0" - connect reslice1.Out viewer3.In new CommandButton butExec set butExec.Label "Execute" -//Slider for second angle - new Slider angle - set angle.In 0 - set angle.Max 180 - set angle.Min -180 - - connect angle.Out transform.SecondAngle - -//Tab for the first image + set angle.In "0" + set angle.Max "180" + set angle.Min "-180" new LayoutSplit tab1 - set tab1.Orientation H - -//////////////////// + set tab1.Orientation "H" new LayoutSplit hello - set hello.Orientation V - - connect showNpoints.Widget hello.Widget1 + set hello.Orientation "V" new LayoutSplit hello2 - connect butExec.Widget hello2.Widget1 - connect angle.Widget hello2.Widget2 - - connect hello2.Widget hello.Widget2 - - connect hello.Widget tab1.Widget1 - connect viewer.Widget tab1.Widget2 - -//Tab for the second image new LayoutSplit tab2 - set tab2.Orientation H - connect showNpoints2.Widget tab2.Widget1 - connect viewer2.Widget tab2.Widget2 - -//Tab for the result image - - connect butExec.BoxChange transform.BoxExecute - connect butExec.BoxChange reslice1.BoxExecute - connect butExec.BoxChange viewer3.BoxExecute - - -//Main window + set tab2.Orientation "H" new LayoutTab main -set main.Orientation H + set main.Orientation "H" + +new ImagesChooserDialogBox Box18 + +new ImagesChooserDialogBox Box19 + +new vtkImageDataPointerRelay Box20 + +new vtkImageDataPointerRelay Box21 + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer2.Renderer1 showNpoints2.Renderer +connect viewer2.Point showNpoints2.In +connect viewer2.BoxChange showNpoints2.BoxExecute +connect showNpoints.lstPointsX transform.InX1 +connect showNpoints2.lstPointsX transform.InX2 +connect showNpoints.lstPointsY transform.InY1 +connect showNpoints2.lstPointsY transform.InY2 +connect showNpoints.lstPointsZ transform.InZ1 +connect showNpoints2.lstPointsZ transform.InZ2 +connect showNpoints.lstLabels transform.Labels1 +connect showNpoints2.lstLabels transform.Labels2 +connect transform.Out reslice1.Transform +connect reslice1.Out viewer3.In +connect angle.Out transform.SecondAngle +connect showNpoints.Widget hello.Widget1 +connect butExec.Widget hello2.Widget1 +connect angle.Widget hello2.Widget2 +connect hello2.Widget hello.Widget2 +connect hello.Widget tab1.Widget1 +connect viewer.Widget tab1.Widget2 +connect showNpoints2.Widget tab2.Widget1 +connect viewer2.Widget tab2.Widget2 +connect butExec.BoxChange transform.BoxExecute +connect butExec.BoxChange reslice1.BoxExecute +connect butExec.BoxChange viewer3.BoxExecute connect tab1.Widget main.Widget1 connect tab2.Widget main.Widget2 - -exec main \ No newline at end of file +connect Box18.Out Box20.In +connect Box20.Out reslice1.In +connect Box20.Out viewer2.In +connect Box19.Out Box21.In +connect Box21.Out showNpoints.Image +connect Box21.Out viewer.In + +exec main diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbg b/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbg new file mode 100644 index 0000000..cd227f7 --- /dev/null +++ b/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbg @@ -0,0 +1,233 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:Recalage3D 3-point +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:16 +BOX +creaMaracasVisu:ViewerNV:viewer +ISEXEC:FALSE +-94.033325:37.965699:900.000000 +-33.393325:27.965699:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints +ISEXEC:FALSE +-85.032992:-6.902978:900.000000 +-36.712992:-16.902978:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +94.408988:24.338850:900.000000 +155.048988:14.338850:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +creaMaracasVisu:ShowNPoints:showNpoints2 +ISEXEC:FALSE +35.478049:-6.870882:900.000000 +106.653049:-16.870882:900.000000 +PORT +Radio:"10" +FIN_BOX +BOX +PackRecalage:Transform3D3PointsBox:transform +ISEXEC:FALSE +-42.158768:-70.352003:900.000000 +29.016232:-80.352003:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +20.319831:-114.585999:900.000000 +65.894831:-124.585999:900.000000 +PORT +Origin:"0,0,0" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer3 +ISEXEC:FALSE +-60.044306:-155.902772:900.000000 +0.595694:-165.902772:900.000000 +PORT +nTypeView:"5" +FIN_BOX +BOX +wx:CommandButton:butExec +ISEXEC:FALSE +-108.942769:-58.148929:900.000000 +-63.367769:-68.148929:900.000000 +PORT +Label:"Execute" +FIN_BOX +BOX +wx:LayoutSplit:tab1 +ISEXEC:FALSE +-166.079995:-140.528005:900.000000 +-120.504995:-150.528005:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:hello +ISEXEC:FALSE +-79.559385:-111.761237:900.000000 +-33.984385:-121.761237:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:LayoutSplit:tab2 +ISEXEC:FALSE +107.313227:-65.108932:900.000000 +152.888227:-75.108932:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:main +ISEXEC:TRUE +27.753842:-215.197544:900.000000 +85.313842:-225.197544:900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box16 +ISEXEC:FALSE +-130.369323:68.286693:900.000000 +-59.194323:58.286693:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box17 +ISEXEC:FALSE +28.617831:56.843288:900.000000 +99.792831:46.843288:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box18 +ISEXEC:FALSE +-127.916031:93.904256:900.000000 +-56.741031:83.904256:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box19 +ISEXEC:FALSE +26.574950:93.777718:900.000000 +97.749950:83.777718:900.000000 +FIN_BOX +CONNECTIONS:34 +CONNECTION +viewer:Renderer1:showNpoints:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer:Point:showNpoints:In +NumberOfControlPoints:0 +CONNECTION +viewer:BoxChange:showNpoints:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewer2:Renderer1:showNpoints2:Renderer +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:showNpoints2:In +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:showNpoints2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsX:transform:InX1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsX:transform:InX2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsY:transform:InY1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsY:transform:InY2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstPointsZ:transform:InZ1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstPointsZ:transform:InZ2 +NumberOfControlPoints:0 +CONNECTION +showNpoints:lstLabels:transform:Labels1 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:lstLabels:transform:Labels2 +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:viewer3:In +NumberOfControlPoints:0 +CONNECTION +showNpoints:Widget:hello:Widget1 +NumberOfControlPoints:0 +CONNECTION +butExec:Widget:hello:Widget2 +NumberOfControlPoints:0 +CONNECTION +hello:Widget:tab1:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer:Widget:tab1:Widget2 +NumberOfControlPoints:0 +CONNECTION +showNpoints2:Widget:tab2:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:tab2:Widget2 +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:transform:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:reslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +butExec:BoxChange:viewer3:BoxExecute +NumberOfControlPoints:0 +CONNECTION +tab1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +tab2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box16:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:showNpoints2:Image +NumberOfControlPoints:0 +CONNECTION +Box17:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box17:In +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbs b/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbs index 9d65f31..894778c 100644 --- a/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbs +++ b/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbs @@ -1,125 +1,100 @@ -description "Recalage3D 3-point" -author "info-dev@creatis.insa-lyon.fr" -category "example" - - -load vtk -include wxvtk -load std -load itk -include vtk +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D3Points.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include creaMaracasVisu +include PackRecalage include wx -load itkvtk -load creaMaracasVisu -load PackRecalage - -//File selection and file reader for the first image - -new FileSelector openFileDialog - set openFileDialog.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader - connect openFileDialog.Out reader.In - -//File selection and file reader for the second image - -new FileSelector openFileDialog2 - set openFileDialog2.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader reader2 - connect openFileDialog2.Out reader2.In +include vtk +include creaImageIO -//Viewer NV and ShowPoints for the first image +author "info-dev@creatis.insa-lyon.fr" +description "Recalage3D 3-point" +category "example" new ViewerNV viewer - connect reader.Out viewer.In set viewer.nTypeView "5" new ShowNPoints showNpoints - connect reader.Out showNpoints.Image - connect viewer.Renderer1 showNpoints.Renderer - connect viewer.Point showNpoints.In - connect viewer.BoxChange showNpoints.BoxExecute - set showNpoints.Radio 10 - -//Viewer NV and ShowPoints for the second image + set showNpoints.Radio "10" new ViewerNV viewer2 - connect reader2.Out viewer2.In set viewer2.nTypeView "5" new ShowNPoints showNpoints2 - connect reader2.Out showNpoints2.Image - connect viewer2.Renderer1 showNpoints2.Renderer - connect viewer2.Point showNpoints2.In - connect viewer2.BoxChange showNpoints2.BoxExecute - set showNpoints2.Radio 10 - -////////////////////////////////////////// -#Transform Box -////////////////////////////////////////// + set showNpoints2.Radio "10" new Transform3D3PointsBox transform - connect showNpoints.lstPointsX transform.InX1 - connect showNpoints2.lstPointsX transform.InX2 - connect showNpoints.lstPointsY transform.InY1 - connect showNpoints2.lstPointsY transform.InY2 - connect showNpoints.lstPointsZ transform.InZ1 - connect showNpoints2.lstPointsZ transform.InZ2 - - connect showNpoints.lstLabels transform.Labels1 - connect showNpoints2.lstLabels transform.Labels2 - -new ReSlicerBox reslice1 +new ReSlicerBox reslice1 set reslice1.Origin "0,0,0" - connect transform.Out reslice1.Transform - connect reader2.Out reslice1.In - -//ViewerNV and ComandButton for the result image - - new ViewerNV viewer3 set viewer3.nTypeView "5" - connect reslice1.Out viewer3.In new CommandButton butExec set butExec.Label "Execute" -//Tab for the first image - new LayoutSplit tab1 - set tab1.Orientation H - -//////////////////// + set tab1.Orientation "H" new LayoutSplit hello - set hello.Orientation V - - connect showNpoints.Widget hello.Widget1 - connect butExec.Widget hello.Widget2 - - connect hello.Widget tab1.Widget1 - connect viewer.Widget tab1.Widget2 - -//Tab for the second image + set hello.Orientation "V" new LayoutSplit tab2 - set tab2.Orientation H - connect showNpoints2.Widget tab2.Widget1 - connect viewer2.Widget tab2.Widget2 - -//Tab for the result image - - connect butExec.BoxChange transform.BoxExecute - connect butExec.BoxChange reslice1.BoxExecute - connect butExec.BoxChange viewer3.BoxExecute - - -//Main window + set tab2.Orientation "H" new LayoutTab main -set main.Orientation H + set main.Orientation "H" + +new vtkImageDataPointerRelay Box16 + +new vtkImageDataPointerRelay Box17 + +new ImagesChooserDialogBox Box18 + +new ImagesChooserDialogBox Box19 + + +connect viewer.Renderer1 showNpoints.Renderer +connect viewer.Point showNpoints.In +connect viewer.BoxChange showNpoints.BoxExecute +connect viewer2.Renderer1 showNpoints2.Renderer +connect viewer2.Point showNpoints2.In +connect viewer2.BoxChange showNpoints2.BoxExecute +connect showNpoints.lstPointsX transform.InX1 +connect showNpoints2.lstPointsX transform.InX2 +connect showNpoints.lstPointsY transform.InY1 +connect showNpoints2.lstPointsY transform.InY2 +connect showNpoints.lstPointsZ transform.InZ1 +connect showNpoints2.lstPointsZ transform.InZ2 +connect showNpoints.lstLabels transform.Labels1 +connect showNpoints2.lstLabels transform.Labels2 +connect transform.Out reslice1.Transform +connect reslice1.Out viewer3.In +connect showNpoints.Widget hello.Widget1 +connect butExec.Widget hello.Widget2 +connect hello.Widget tab1.Widget1 +connect viewer.Widget tab1.Widget2 +connect showNpoints2.Widget tab2.Widget1 +connect viewer2.Widget tab2.Widget2 +connect butExec.BoxChange transform.BoxExecute +connect butExec.BoxChange reslice1.BoxExecute +connect butExec.BoxChange viewer3.BoxExecute connect tab1.Widget main.Widget1 connect tab2.Widget main.Widget2 - -exec main \ No newline at end of file +connect Box16.Out viewer.In +connect Box16.Out showNpoints.Image +connect Box18.Out Box16.In +connect Box17.Out reslice1.In +connect Box17.Out showNpoints2.Image +connect Box17.Out viewer2.In +connect Box19.Out Box17.In + +exec main diff --git a/PackRecalage/bbs/appli/Recalage.bbg b/PackRecalage/bbs/appli/Recalage.bbg new file mode 100644 index 0000000..c78cd65 --- /dev/null +++ b/PackRecalage/bbs/appli/Recalage.bbg @@ -0,0 +1,107 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/Recalage.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:creatisRecalage::Recalage Rigid 2D and 3D examples. +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:9 +BOX +wx:CommandButton:recalage2D +ISEXEC:FALSE +-111.295116:98.447285:900.000000 +-40.120116:88.447285:900.000000 +PORT +Label:"Recalage 2D" +FIN_BOX +BOX +wx:CommandButton:recalage3DV1 +ISEXEC:FALSE +-51.555986:56.852632:900.000000 +19.619014:46.852632:900.000000 +PORT +Label:"Recalage 3D (one point)" +FIN_BOX +BOX +wx:CommandButton:recalage3DV2 +ISEXEC:FALSE +-8.124509:19.948408:900.000000 +63.050491:9.948408:900.000000 +PORT +Label:"Recalage 3D (two points)" +FIN_BOX +BOX +wx:CommandButton:recalage3DV3 +ISEXEC:FALSE +11.434589:-16.904480:900.000000 +82.609589:-26.904480:900.000000 +PORT +Label:"Recalage 3D (three points)" +FIN_BOX +BOX +wx:LayoutLine:layout +ISEXEC:TRUE +-67.625529:-69.499284:900.000000 +-10.065529:-79.499284:900.000000 +FIN_BOX +BOX +std:ExecSystemCommand:Box05 +ISEXEC:FALSE +-96.886600:83.118403:900.000000 +-25.711600:73.118403:900.000000 +PORT +In:"bbi PackRecalage/appli/Recalage2D.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box06 +ISEXEC:FALSE +-41.157531:42.459697:900.000000 +30.017469:32.459697:900.000000 +PORT +In:"bbi PackRecalage/appli/ExampleRecalage3D1Point.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box07 +ISEXEC:FALSE +-3.062216:5.554861:900.000000 +68.112784:-4.445139:900.000000 +PORT +In:"bbi PackRecalage/appli/ExampleRecalage3D2Points.bbs &" +FIN_BOX +BOX +std:ExecSystemCommand:Box08 +ISEXEC:FALSE +28.187847:-31.052356:900.000000 +99.362847:-41.052356:900.000000 +PORT +In:"bbi PackRecalage/appli/ExampleRecalage3D3Points.bbs &" +FIN_BOX +CONNECTIONS:8 +CONNECTION +recalage2D:Widget:layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +recalage3DV1:Widget:layout:Widget2 +NumberOfControlPoints:0 +CONNECTION +recalage3DV2:Widget:layout:Widget3 +NumberOfControlPoints:0 +CONNECTION +recalage3DV3:Widget:layout:Widget4 +NumberOfControlPoints:0 +CONNECTION +recalage2D:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +recalage3DV1:BoxChange:Box06:BoxExecute +NumberOfControlPoints:0 +CONNECTION +recalage3DV2:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 +CONNECTION +recalage3DV3:BoxChange:Box08:BoxExecute +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/Recalage.bbs b/PackRecalage/bbs/appli/Recalage.bbs index c173386..c557173 100644 --- a/PackRecalage/bbs/appli/Recalage.bbs +++ b/PackRecalage/bbs/appli/Recalage.bbs @@ -1,31 +1,54 @@ -description "creatisRecalage::Recalage Rigid 2D and 3D examples. " -category "example" -author "info-dev@creatis.insa-lyon.fr" +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/Recalage.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- +include std +include itkvtk +include wx +include std -load wx -//load PackRecalage +author "info-dev@creatis.insa-lyon.fr" +description "creatisRecalage::Recalage Rigid 2D and 3D examples. " +category "example" new CommandButton recalage2D set recalage2D.Label "Recalage 2D" - set recalage2D.In "include PackRecalage/appli/Recalage2D" new CommandButton recalage3DV1 set recalage3DV1.Label "Recalage 3D (one point)" - set recalage3DV1.In "include PackRecalage/appli/ExampleRecalage3D1Point" new CommandButton recalage3DV2 set recalage3DV2.Label "Recalage 3D (two points)" - set recalage3DV2.In "include PackRecalage/appli/ExampleRecalage3D2Points" new CommandButton recalage3DV3 set recalage3DV3.Label "Recalage 3D (three points)" - set recalage3DV3.In "include PackRecalage/appli/ExampleRecalage3D3Points" new LayoutLine layout - connect recalage2D.Widget layout.Widget1 - connect recalage3DV1.Widget layout.Widget2 - connect recalage3DV2.Widget layout.Widget3 - connect recalage3DV3.Widget layout.Widget4 + +new ExecSystemCommand Box05 + set Box05.In "bbi PackRecalage/appli/Recalage2D.bbs &" + +new ExecSystemCommand Box06 + set Box06.In "bbi PackRecalage/appli/ExampleRecalage3D1Point.bbs &" + +new ExecSystemCommand Box07 + set Box07.In "bbi PackRecalage/appli/ExampleRecalage3D2Points.bbs &" + +new ExecSystemCommand Box08 + set Box08.In "bbi PackRecalage/appli/ExampleRecalage3D3Points.bbs &" + + +connect recalage2D.Widget layout.Widget1 +connect recalage3DV1.Widget layout.Widget2 +connect recalage3DV2.Widget layout.Widget3 +connect recalage3DV3.Widget layout.Widget4 +connect recalage2D.BoxChange Box05.BoxExecute +connect recalage3DV1.BoxChange Box06.BoxExecute +connect recalage3DV2.BoxChange Box07.BoxExecute +connect recalage3DV3.BoxChange Box08.BoxExecute exec layout diff --git a/PackRecalage/bbs/appli/Recalage2D.bbg b/PackRecalage/bbs/appli/Recalage2D.bbg new file mode 100644 index 0000000..c70f409 --- /dev/null +++ b/PackRecalage/bbs/appli/Recalage2D.bbg @@ -0,0 +1,854 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/Recalage2D.bbg +# ---------------------------------- + +APP_START +CATEGORY:example +DESCRIPTION:creatisRecalage::Recalage Rigid 2D. +AUTHOR:info-dev@creatis.insa-lyon.fr +COMPLEXBOX:FALSE +BOXES:57 +BOX +vtk:SliceImage:imgslice1 +ISEXEC:FALSE +211.427795:-174.537976:900.000000 +257.002795:-184.537976:900.000000 +FIN_BOX +BOX +vtk:SliceImage:imgslice2 +ISEXEC:FALSE +-201.398603:-244.999809:900.000000 +-155.823603:-254.999809:900.000000 +FIN_BOX +BOX +wx:LayoutLine:v1Layout +ISEXEC:FALSE +118.414082:-181.506209:900.000000 +175.974082:-191.506209:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer1 +ISEXEC:FALSE +287.718381:-125.584186:900.000000 +348.358381:-135.584186:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutLine:v2Layout +ISEXEC:FALSE +134.976348:-217.032026:900.000000 +192.536348:-227.032026:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewer2 +ISEXEC:FALSE +-70.852109:-131.769634:900.000000 +-10.212109:-141.769634:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:initialImages +ISEXEC:FALSE +78.033201:-313.412370:900.000000 +123.608201:-323.412370:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +FIN_BOX +BOX +wx:LayoutLine:buttonsLayout +ISEXEC:FALSE +-188.050977:-322.849567:900.000000 +-130.490977:-332.849567:900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:Slider:slider +ISEXEC:FALSE +0.000000:-230.000000:900.000000 +51.400000:-240.000000:900.000000 +PORT +In:"0" +PORT +Max:"180" +PORT +Min:"-180" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Angle" +FIN_BOX +BOX +wx:Slider:sliderX +ISEXEC:FALSE +-129.246018:-140.516556:900.000000 +-77.846018:-150.516556:900.000000 +PORT +In:"100" +PORT +Max:"500" +PORT +Min:"10" +PORT +ReactiveOnTrack:"1" +PORT +Title:"% Scale in X" +FIN_BOX +BOX +wx:Slider:sliderY +ISEXEC:FALSE +-336.965364:-235.844852:900.000000 +-285.565364:-245.844852:900.000000 +PORT +In:"100" +PORT +Max:"500" +PORT +Min:"10" +PORT +ReactiveOnTrack:"1" +PORT +Title:"% Scale in Y" +FIN_BOX +BOX +PackRecalage:Transform2DBox:transform +ISEXEC:FALSE +-36.851860:-285.362592:900.000000 +8.723140:-295.362592:900.000000 +FIN_BOX +BOX +PackRecalage:ReSlicerBox:reslice1 +ISEXEC:FALSE +0.000000:-350.000000:900.000000 +45.575000:-360.000000:900.000000 +FIN_BOX +BOX +PackRecalage:ImageConvolution:convol1 +ISEXEC:FALSE +233.893286:-519.382113:900.000000 +305.068286:-529.382113:900.000000 +FIN_BOX +BOX +PackRecalage:ImageConvolution:convol2 +ISEXEC:FALSE +35.853092:-489.614955:900.000000 +107.028092:-499.614955:900.000000 +FIN_BOX +BOX +PackRecalage:ImageRecalageProperties:properties +ISEXEC:FALSE +273.136800:-16.926937:900.000000 +344.311800:-26.926937:900.000000 +FIN_BOX +BOX +wx:Slider:sdrZ +ISEXEC:FALSE +52.558534:-135.269685:900.000000 +103.958534:-145.269685:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Z for slice" +FIN_BOX +BOX +wx:Slider:sdrF +ISEXEC:FALSE +-153.252387:-349.206111:900.000000 +-101.852387:-359.206111:900.000000 +PORT +In:"0" +PORT +Max:"100" +PORT +Min:"0" +PORT +ReactiveOnTrack:"1" +PORT +Title:"Convolution Factor" +FIN_BOX +BOX +wx:CheckBox:checkF +ISEXEC:FALSE +417.625382:-310.693154:900.000000 +463.200382:-320.693154:900.000000 +PORT +In:"True" +FIN_BOX +BOX +std:MultipleInputs:multF +ISEXEC:FALSE +115.645806:-416.060379:900.000000 +161.220806:-426.060379:900.000000 +FIN_BOX +BOX +wx:Slider:colorLevel +ISEXEC:FALSE +-23.726311:-96.492728:900.000000 +27.673689:-106.492728:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Color Level" +FIN_BOX +BOX +wx:Slider:windowLevel +ISEXEC:FALSE +449.969493:-60.641726:900.000000 +501.369493:-70.641726:900.000000 +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Window Level" +FIN_BOX +BOX +std:MultipleInputs:multLevels +ISEXEC:FALSE +168.193183:-276.706038:900.000000 +213.768183:-286.706038:900.000000 +FIN_BOX +BOX +wx:CommandButton:saveBut +ISEXEC:FALSE +-295.553963:-673.425791:900.000000 +-249.978963:-683.425791:900.000000 +PORT +Label:"Save Image" +FIN_BOX +BOX +wx:FileSelector:fileSave +ISEXEC:FALSE +-219.647119:-713.238041:900.000000 +-174.072119:-723.238041:900.000000 +PORT +OpenSave:"Save" +PORT +Wildcard:"*.mhd" +FIN_BOX +BOX +vtk:MetaImageWriter:writSave +ISEXEC:FALSE +-209.577422:-784.049469:900.000000 +-164.002422:-794.049469:900.000000 +FIN_BOX +BOX +PackRecalage:CheckBoardBox:cbb +ISEXEC:FALSE +391.480616:-953.799246:900.000000 +437.055616:-963.799246:900.000000 +FIN_BOX +BOX +wx:Slider:sdr +ISEXEC:FALSE +5.909891:-738.863687:900.000000 +57.309891:-748.863687:900.000000 +PORT +In:"14" +PORT +Max:"50" +PORT +ReactiveOnTrack:"1" +FIN_BOX +BOX +wx:Slider:sdr2 +ISEXEC:FALSE +399.914044:-796.120604:900.000000 +451.314044:-806.120604:900.000000 +PORT +In:"14" +PORT +Max:"50" +PORT +ReactiveOnTrack:"1" +FIN_BOX +BOX +wx:LayoutSplit:checkerBoard +ISEXEC:FALSE +252.008460:-1097.680926:900.000000 +297.583460:-1107.680926:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutLine:ly +ISEXEC:FALSE +219.647119:-864.095671:900.000000 +277.207119:-874.095671:900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:viewerCH +ISEXEC:FALSE +497.336294:-1039.880605:900.000000 +557.976294:-1049.880605:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +PackRecalage:TransparencyBox:trans +ISEXEC:FALSE +30.990812:-1070.602751:900.000000 +76.565812:-1080.602751:900.000000 +FIN_BOX +BOX +wx:Slider:sdrP +ISEXEC:FALSE +186.217661:-921.928710:900.000000 +237.617661:-931.928710:900.000000 +PORT +In:"50" +PORT +Max:"100" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:transView +ISEXEC:FALSE +-92.427438:-1126.183721:900.000000 +-31.787438:-1136.183721:900.000000 +PORT +nTypeView:"0" +FIN_BOX +BOX +wx:LayoutSplit:transparency +ISEXEC:FALSE +-110.253797:-1218.092259:900.000000 +-64.678797:-1228.092259:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +PackRecalage:ImageSwitcherBox:switch +ISEXEC:FALSE +-215.329731:-1163.903191:900.000000 +-169.754731:-1173.903191:900.000000 +FIN_BOX +BOX +wx:CheckBox:checkS +ISEXEC:FALSE +-174.245523:-1132.724543:900.000000 +-128.670523:-1142.724543:900.000000 +PORT +In:"true" +PORT +Title:"On" +FIN_BOX +BOX +wx:Slider:sdrT +ISEXEC:FALSE +-278.403770:-1105.769385:900.000000 +-227.003770:-1115.769385:900.000000 +PORT +In:"500" +PORT +Max:"1000" +PORT +Min:"0" +PORT +ReactiveOnTrack:"True" +FIN_BOX +BOX +wxvtk:Viewer2D:viewerSwitch +ISEXEC:FALSE +-225.332034:-1224.841651:900.000000 +-179.757034:-1234.841651:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:switcher +ISEXEC:FALSE +-233.394515:-1317.018816:900.000000 +-187.819515:-1327.018816:900.000000 +PORT +Proportion:"70" +FIN_BOX +BOX +wx:LayoutSplit:switchWindow +ISEXEC:FALSE +-186.347762:-1262.094534:900.000000 +-140.772762:-1272.094534:900.000000 +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutSplit:switchTool +ISEXEC:FALSE +-168.917809:-1237.587509:900.000000 +-123.342809:-1247.587509:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +FIN_BOX +BOX +std:MultipleInputs:mult +ISEXEC:FALSE +421.429158:-531.944268:900.000000 +467.004158:-541.944268:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult2 +ISEXEC:FALSE +332.410326:-668.804947:900.000000 +377.985326:-678.804947:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult3 +ISEXEC:FALSE +317.603235:-909.523011:900.000000 +363.178235:-919.523011:900.000000 +FIN_BOX +BOX +std:MultipleInputs:mult4 +ISEXEC:FALSE +255.299452:-969.465453:900.000000 +300.874452:-979.465453:900.000000 +FIN_BOX +BOX +wx:LayoutTab:tabs +ISEXEC:FALSE +-155.046698:-1486.887435:900.000000 +-97.486698:-1496.887435:900.000000 +FIN_BOX +BOX +wx:LayoutLine:tools +ISEXEC:FALSE +-26.444002:-1490.443433:900.000000 +31.115998:-1500.443433:900.000000 +FIN_BOX +BOX +wx:LayoutSplit:convolTools +ISEXEC:FALSE +-100.000000:-1460.000000:900.000000 +-54.425000:-1470.000000:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"80" +FIN_BOX +BOX +wx:LayoutSplit:window1 +ISEXEC:FALSE +98.220579:-1519.142370:900.000000 +143.795579:-1529.142370:900.000000 +PORT +Orientation:"V" +PORT +Proportion:"80" +PORT +WinWidth:"600" +FIN_BOX +BOX +wx:LayoutSplit:window2 +ISEXEC:FALSE +-100.000000:-1520.000000:900.000000 +-54.425000:-1530.000000:900.000000 +PORT +Proportion:"90" +FIN_BOX +BOX +wx:LayoutSplit:main +ISEXEC:TRUE +-2.158694:-1559.714123:900.000000 +43.416306:-1569.714123:900.000000 +PORT +Orientation:"H" +PORT +Proportion:"50" +PORT +WinWidth:"1200" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box56 +ISEXEC:FALSE +-57.754020:16.419627:900.000000 +13.420980:6.419627:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box57 +ISEXEC:FALSE +9.434122:63.877015:900.000000 +80.609122:53.877015:900.000000 +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box58 +ISEXEC:FALSE +272.622912:64.498706:900.000000 +343.797912:54.498706:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box59 +ISEXEC:FALSE +238.638235:21.687740:900.000000 +309.813235:11.687740:900.000000 +FIN_BOX +CONNECTIONS:119 +CONNECTION +viewer1:Widget:v1Layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +viewer2:Widget:v2Layout:Widget1 +NumberOfControlPoints:0 +CONNECTION +v1Layout:Widget:initialImages:Widget1 +NumberOfControlPoints:0 +CONNECTION +v2Layout:Widget:initialImages:Widget2 +NumberOfControlPoints:0 +CONNECTION +slider:Widget:buttonsLayout:Widget1 +NumberOfControlPoints:0 +CONNECTION +sliderX:Widget:buttonsLayout:Widget2 +NumberOfControlPoints:0 +CONNECTION +sliderY:Widget:buttonsLayout:Widget3 +NumberOfControlPoints:0 +CONNECTION +viewer2:Point:transform:CenterPoint +NumberOfControlPoints:0 +CONNECTION +slider:Out:transform:Angle +NumberOfControlPoints:0 +CONNECTION +sliderX:Out:transform:ScaleX +NumberOfControlPoints:0 +CONNECTION +sliderY:Out:transform:ScaleY +NumberOfControlPoints:0 +CONNECTION +viewer1:Point:reslice1:Origin +NumberOfControlPoints:0 +CONNECTION +transform:Out:reslice1:Transform +NumberOfControlPoints:0 +CONNECTION +imgslice2:Out:reslice1:In +NumberOfControlPoints:0 +CONNECTION +imgslice1:Out:convol1:In +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:convol2:In +NumberOfControlPoints:0 +CONNECTION +properties:LengthZ:sdrZ:Max +NumberOfControlPoints:0 +CONNECTION +sdrZ:Out:imgslice1:Z +NumberOfControlPoints:0 +CONNECTION +sdrZ:Out:imgslice2:Z +NumberOfControlPoints:0 +CONNECTION +sdrZ:BoxChange:imgslice1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +sdrZ:BoxChange:imgslice2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +sdrF:Out:convol1:Factor +NumberOfControlPoints:0 +CONNECTION +sdrF:Out:convol2:Factor +NumberOfControlPoints:0 +CONNECTION +checkF:Out:convol1:On +NumberOfControlPoints:0 +CONNECTION +checkF:Out:convol2:On +NumberOfControlPoints:0 +CONNECTION +sdrF:BoxChange:multF:In1 +NumberOfControlPoints:0 +CONNECTION +checkF:BoxChange:multF:In2 +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:convol1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:convol2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +properties:ColorLevel:colorLevel:Max +NumberOfControlPoints:0 +CONNECTION +properties:MidColorLevel:colorLevel:In +NumberOfControlPoints:0 +CONNECTION +properties:ColorLevel:windowLevel:Max +NumberOfControlPoints:0 +CONNECTION +properties:MidColorLevel:windowLevel:In +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewer1:ColorLevel +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewer2:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewer1:WindowLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewer2:WindowLevel +NumberOfControlPoints:0 +CONNECTION +colorLevel:BoxChange:multLevels:In1 +NumberOfControlPoints:0 +CONNECTION +windowLevel:BoxChange:multLevels:In2 +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:viewer1:BoxExecute +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:viewer2:BoxExecute +NumberOfControlPoints:0 +CONNECTION +reslice1:Out:writSave:In +NumberOfControlPoints:0 +CONNECTION +fileSave:Out:writSave:Filename +NumberOfControlPoints:0 +CONNECTION +saveBut:BoxChange:fileSave:BoxExecute +NumberOfControlPoints:0 +CONNECTION +fileSave:BoxChange:writSave:BoxExecute +NumberOfControlPoints:0 +CONNECTION +convol1:Out:cbb:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:cbb:In2 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:viewerCH:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:viewerCH:WindowLevel +NumberOfControlPoints:0 +CONNECTION +sdr:Out:cbb:Cols +NumberOfControlPoints:0 +CONNECTION +sdr2:Out:cbb:Rows +NumberOfControlPoints:0 +CONNECTION +cbb:Out:viewerCH:In +NumberOfControlPoints:0 +CONNECTION +sdr:Widget:ly:Widget2 +NumberOfControlPoints:0 +CONNECTION +sdr2:Widget:ly:Widget3 +NumberOfControlPoints:0 +CONNECTION +viewerCH:Widget:checkerBoard:Widget1 +NumberOfControlPoints:0 +CONNECTION +ly:Widget:checkerBoard:Widget2 +NumberOfControlPoints:0 +CONNECTION +convol1:Out:trans:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:trans:In2 +NumberOfControlPoints:0 +CONNECTION +sdrP:Out:trans:Percent +NumberOfControlPoints:0 +CONNECTION +trans:Out:transView:In +NumberOfControlPoints:0 +CONNECTION +transView:Widget:transparency:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrP:Widget:transparency:Widget2 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Out:transView:ColorLevel +NumberOfControlPoints:0 +CONNECTION +windowLevel:Out:transView:WindowLevel +NumberOfControlPoints:0 +CONNECTION +convol1:Out:switch:In1 +NumberOfControlPoints:0 +CONNECTION +convol2:Out:switch:In2 +NumberOfControlPoints:0 +CONNECTION +checkS:Out:switch:On +NumberOfControlPoints:0 +CONNECTION +sdrT:Out:switch:Time +NumberOfControlPoints:0 +CONNECTION +switch:Out:viewerSwitch:In +NumberOfControlPoints:0 +CONNECTION +sdrT:BoxChange:switch:BoxExecute +NumberOfControlPoints:0 +CONNECTION +switch:BoxChange:viewerSwitch:BoxExecute +NumberOfControlPoints:0 +CONNECTION +viewerSwitch:Widget:switchWindow:Widget1 +NumberOfControlPoints:0 +CONNECTION +switch:Widget:switchTool:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkS:Widget:switchTool:Widget2 +NumberOfControlPoints:0 +CONNECTION +switchTool:Widget:switchWindow:Widget2 +NumberOfControlPoints:0 +CONNECTION +switchWindow:Widget:switcher:Widget1 +NumberOfControlPoints:0 +CONNECTION +sdrT:Widget:switcher:Widget2 +NumberOfControlPoints:0 +CONNECTION +slider:BoxChange:mult:In1 +NumberOfControlPoints:0 +CONNECTION +sliderX:BoxChange:mult:In2 +NumberOfControlPoints:0 +CONNECTION +sliderY:BoxChange:mult:In3 +NumberOfControlPoints:0 +CONNECTION +viewer1:BoxChange:mult:In4 +NumberOfControlPoints:0 +CONNECTION +viewer2:BoxChange:mult:In5 +NumberOfControlPoints:0 +CONNECTION +multF:BoxChange:mult2:In1 +NumberOfControlPoints:0 +CONNECTION +mult:BoxChange:mult2:In2 +NumberOfControlPoints:0 +CONNECTION +ly:BoxChange:mult3:In1 +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult3:In2 +NumberOfControlPoints:0 +CONNECTION +imgslice1:BoxChange:mult3:In3 +NumberOfControlPoints:0 +CONNECTION +imgslice2:BoxChange:mult3:In4 +NumberOfControlPoints:0 +CONNECTION +multLevels:BoxChange:mult3:In5 +NumberOfControlPoints:0 +CONNECTION +mult3:BoxChange:cbb:BoxExecute +NumberOfControlPoints:0 +CONNECTION +cbb:BoxChange:viewerCH:BoxExecute +NumberOfControlPoints:0 +CONNECTION +mult2:BoxChange:mult4:In1 +NumberOfControlPoints:0 +CONNECTION +sdrP:BoxChange:mult4:In2 +NumberOfControlPoints:0 +CONNECTION +mult4:BoxChange:trans:BoxExecute +NumberOfControlPoints:0 +CONNECTION +trans:BoxChange:transView:BoxExecute +NumberOfControlPoints:0 +CONNECTION +switcher:Widget:tabs:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkerBoard:Widget:tabs:Widget2 +NumberOfControlPoints:0 +CONNECTION +transparency:Widget:tabs:Widget3 +NumberOfControlPoints:0 +CONNECTION +sdrZ:Widget:tools:Widget1 +NumberOfControlPoints:0 +CONNECTION +colorLevel:Widget:tools:Widget2 +NumberOfControlPoints:0 +CONNECTION +windowLevel:Widget:tools:Widget3 +NumberOfControlPoints:0 +CONNECTION +saveBut:Widget:tools:Widget5 +NumberOfControlPoints:0 +CONNECTION +sdrF:Widget:convolTools:Widget1 +NumberOfControlPoints:0 +CONNECTION +checkF:Widget:convolTools:Widget2 +NumberOfControlPoints:0 +CONNECTION +convolTools:Widget:tools:Widget4 +NumberOfControlPoints:0 +CONNECTION +initialImages:Widget:window1:Widget1 +NumberOfControlPoints:0 +CONNECTION +buttonsLayout:Widget:window1:Widget2 +NumberOfControlPoints:0 +CONNECTION +tabs:Widget:window2:Widget1 +NumberOfControlPoints:0 +CONNECTION +tools:Widget:window2:Widget2 +NumberOfControlPoints:0 +CONNECTION +window1:Widget:main:Widget1 +NumberOfControlPoints:0 +CONNECTION +window2:Widget:main:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:imgslice2:In +NumberOfControlPoints:0 +CONNECTION +Box56:Out:viewer2:In +NumberOfControlPoints:0 +CONNECTION +Box57:Out:Box56:In +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box59:In +NumberOfControlPoints:0 +CONNECTION +Box59:Out:imgslice1:In +NumberOfControlPoints:0 +CONNECTION +Box59:Out:viewer1:In +NumberOfControlPoints:0 +CONNECTION +Box59:Out:properties:In +NumberOfControlPoints:0 +CONNECTION +Box58:BoxChange:properties:BoxExecute +NumberOfControlPoints:0 +APP_END diff --git a/PackRecalage/bbs/appli/Recalage2D.bbs b/PackRecalage/bbs/appli/Recalage2D.bbs index 2420805..67b537c 100644 --- a/PackRecalage/bbs/appli/Recalage2D.bbs +++ b/PackRecalage/bbs/appli/Recalage2D.bbs @@ -1,236 +1,105 @@ -description "creatisRecalage::Recalage Rigid 2D. " -category "example" -author "info-dev@creatis.insa-lyon.fr" - -load wx -load std -load vtk -load wxvtk -load creaMaracasVisu - -load PackRecalage - -//include PackRecalage/boxes/checkerView.bbs - -//Uncomment the image readers you need - -///////////////////////////////////////////////// -// File Selector -//////////////////////////////////////////////// -/* -new FileSelector imageSelector1 - set imageSelector1.Wildcard "*.mhd" -new FileSelector imageSelector2 - set imageSelector2.Wildcard "*.mhd" - -new MetaImageReader image - connect imageSelector1.Out image.In - -new MetaImageReader image2 - connect imageSelector2.Out image2.In -*/ - -/////////////////////////////////////////////// -// Gimmick -////////////////////////////////////////////// - +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script +# - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/Recalage2D.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include wx +include creaMaracasVisu +include PackRecalage +include std +include wxvtk include creaImageIO -new Gimmick image -new Gimmick image2 - -/////////////////////////////////////////////// -//Image Slicers -////////////////////////////////////////////// - -# Create the slicers +author "info-dev@creatis.insa-lyon.fr" +description "creatisRecalage::Recalage Rigid 2D. " +category "example" new SliceImage imgslice1 -new SliceImage imgslice2 - connect image.Out imgslice1.In - connect image2.Out imgslice2.In - -//////////////////////////////////////////// -//Image Viewers -/////////////////////////////////////////// -#Viewer containing image 1 +new SliceImage imgslice2 new LayoutLine v1Layout + new ViewerNV viewer1 - connect image.Out viewer1.In set viewer1.nTypeView "0" - connect viewer1.Widget v1Layout.Widget1 - -#Viewer containing image 2 new LayoutLine v2Layout + new ViewerNV viewer2 - connect image2.Out viewer2.In set viewer2.nTypeView "0" - connect viewer2.Widget v2Layout.Widget1 - -////////////////////////////////////// -//Layouts for the images -////////////////////////////////////// - -#LayoutSplit were the images will be new LayoutSplit initialImages + set initialImages.Orientation "H" set initialImages.Proportion "50" - set initialImages.Orientation H - connect v1Layout.Widget initialImages.Widget1 - connect v2Layout.Widget initialImages.Widget2 - -//////////////////////////////////////////////////////////////// -//Information Sliders and Buttons for the Recalage -/////////////////////////////////////////////////////////////// - -#Layout line that will contain the buttons new LayoutLine buttonsLayout - set buttonsLayout.Orientation V - -#Slider were the angle will be entered + set buttonsLayout.Orientation "V" new Slider slider - set slider.Title "Angle" - set slider.In 0 - set slider.Min -180 - set slider.Max 180 + set slider.In "0" + set slider.Max "180" + set slider.Min "-180" set slider.ReactiveOnTrack "1" - connect slider.Widget buttonsLayout.Widget1 - -#Slider were the xScale will be entered + set slider.Title "Angle" new Slider sliderX - set sliderX.Title "% Scale in X" - set sliderX.In 100 - set sliderX.Min 10 - set sliderX.Max 500 + set sliderX.In "100" + set sliderX.Max "500" + set sliderX.Min "10" set sliderX.ReactiveOnTrack "1" - connect sliderX.Widget buttonsLayout.Widget2 - -#Slider were the yScale will be entered + set sliderX.Title "% Scale in X" new Slider sliderY - set sliderY.Title "% Scale in Y" - set sliderY.In 100 - set sliderY.Min 10 - set sliderY.Max 500 + set sliderY.In "100" + set sliderY.Max "500" + set sliderY.Min "10" set sliderY.ReactiveOnTrack "1" - connect sliderY.Widget buttonsLayout.Widget3 - -////////////////////////////////////////////////// -//Transformation Boxes -////////////////////////////////////////////////// - -#Box were the transformation will be made + set sliderY.Title "% Scale in Y" new Transform2DBox transform - connect viewer2.Point transform.CenterPoint - connect slider.Out transform.Angle - connect sliderX.Out transform.ScaleX - connect sliderY.Out transform.ScaleY new ReSlicerBox reslice1 - connect viewer1.Point reslice1.Origin - connect transform.Out reslice1.Transform - connect imgslice2.Out reslice1.In - -////////////////////////////////////////////////// -//Convolution Filter -////////////////////////////////////////////////// - -#Convolution Filter for both of the Images new ImageConvolution convol1 - connect imgslice1.Out convol1.In -new ImageConvolution convol2 - connect reslice1.Out convol2.In - -//////////////////////////////////////////////// -//Recalage Properties -//////////////////////////////////////////////// -#Image Properties +new ImageConvolution convol2 new ImageRecalageProperties properties - connect image.Out properties.In - connect image.BoxChange properties.BoxExecute - -# Create the ZSlider for the slices new Slider sdrZ - set sdrZ.ReactiveOnTrack 1 - set sdrZ.Min 0 - connect properties.LengthZ sdrZ.Max + set sdrZ.Min "0" + set sdrZ.ReactiveOnTrack "1" set sdrZ.Title "Z for slice" - connect sdrZ.Out imgslice1.Z - connect sdrZ.Out imgslice2.Z - connect sdrZ.BoxChange imgslice1.BoxExecute - connect sdrZ.BoxChange imgslice2.BoxExecute - -#Create slider for Convolution Factor - new Slider sdrF - set sdrF.ReactiveOnTrack 1 + set sdrF.In "0" set sdrF.Max "100" set sdrF.Min "0" - set sdrF.In "0" + set sdrF.ReactiveOnTrack "1" set sdrF.Title "Convolution Factor" - connect sdrF.Out convol1.Factor - connect sdrF.Out convol2.Factor - -#Create CheckBox for Convolution Filter On/Off - new CheckBox checkF set checkF.In "True" - connect checkF.Out convol1.On - connect checkF.Out convol2.On - new MultipleInputs multF - connect sdrF.BoxChange multF.In1 - connect checkF.BoxChange multF.In2 - - connect multF.BoxChange convol1.BoxExecute - connect multF.BoxChange convol2.BoxExecute - -#Create Sliders for WinLevel and ColorLevel new Slider colorLevel set colorLevel.Min "0" - connect properties.ColorLevel colorLevel.Max - connect properties.MidColorLevel colorLevel.In - set colorLevel.ReactiveOnTrack true + set colorLevel.ReactiveOnTrack "true" set colorLevel.Title "Color Level" new Slider windowLevel set windowLevel.Min "0" - connect properties.ColorLevel windowLevel.Max - connect properties.MidColorLevel windowLevel.In - set windowLevel.ReactiveOnTrack true + set windowLevel.ReactiveOnTrack "true" set windowLevel.Title "Window Level" -# Connection to viewers - - connect colorLevel.Out viewer1.ColorLevel - connect colorLevel.Out viewer2.ColorLevel - - connect windowLevel.Out viewer1.WindowLevel - connect windowLevel.Out viewer2.WindowLevel - new MultipleInputs multLevels - connect colorLevel.BoxChange multLevels.In1 - connect windowLevel.BoxChange multLevels.In2 - - connect multLevels.BoxChange viewer1.BoxExecute - connect multLevels.BoxChange viewer2.BoxExecute - -# Button for saving new CommandButton saveBut set saveBut.Label "Save Image" @@ -240,205 +109,221 @@ new FileSelector fileSave set fileSave.Wildcard "*.mhd" new MetaImageWriter writSave - connect reslice1.Out writSave.In - connect fileSave.Out writSave.Filename - connect saveBut.BoxChange fileSave.BoxExecute - connect fileSave.BoxChange writSave.BoxExecute - -////////////////////Checkboard///////////////////////// -# Create the visulization box for checkerBoard new CheckBoardBox cbb - connect convol1.Out cbb.In1 - connect convol2.Out cbb.In2 -# Create the slider1 new Slider sdr - set sdr.ReactiveOnTrack 1 - set sdr.Max 50 - set sdr.In 14 + set sdr.In "14" + set sdr.Max "50" + set sdr.ReactiveOnTrack "1" -# Create the slider2 new Slider sdr2 - set sdr2.ReactiveOnTrack 1 - set sdr2.Max 50 - set sdr2.In 14 + set sdr2.In "14" + set sdr2.Max "50" + set sdr2.ReactiveOnTrack "1" -# Create viewer & layout for Checkerboard new LayoutSplit checkerBoard + set checkerBoard.Proportion "80" + new LayoutLine ly + new ViewerNV viewerCH set viewerCH.nTypeView "0" - set checkerBoard.Proportion 80 - -#Connecting levels - - connect colorLevel.Out viewerCH.ColorLevel - connect windowLevel.Out viewerCH.WindowLevel - -# Graphical pipeline for CheckBoard - connect sdr.Out cbb.Cols - connect sdr2.Out cbb.Rows - connect cbb.Out viewerCH.In - - connect sdr.Widget ly.Widget2 - connect sdr2.Widget ly.Widget3 - - connect viewerCH.Widget checkerBoard.Widget1 - connect ly.Widget checkerBoard.Widget2 -/////////////end of Checkboard//////////////////// - -//////////////Transparency/////////////////////////// -#Image Transparency view new TransparencyBox trans - connect convol1.Out trans.In1 - connect convol2.Out trans.In2 new Slider sdrP + set sdrP.In "50" set sdrP.Max "100" set sdrP.Min "0" - set sdrP.In "50" - set sdrP.ReactiveOnTrack true - - connect sdrP.Out trans.Percent + set sdrP.ReactiveOnTrack "true" new ViewerNV transView - connect trans.Out transView.In set transView.nTypeView "0" new LayoutSplit transparency - connect transView.Widget transparency.Widget1 - connect sdrP.Widget transparency.Widget2 - set transparency.Proportion 80 - - connect colorLevel.Out transView.ColorLevel - connect windowLevel.Out transView.WindowLevel -///////////////////end of Transparency//////////////// - - -/////////////////Image Switcher////////////////////// + set transparency.Proportion "80" new ImageSwitcherBox switch - connect convol1.Out switch.In1 - connect convol2.Out switch.In2 new CheckBox checkS - connect checkS.Out switch.On - set checkS.Title "On" set checkS.In "true" + set checkS.Title "On" new Slider sdrT + set sdrT.In "500" set sdrT.Max "1000" set sdrT.Min "0" - set sdrT.In "500" set sdrT.ReactiveOnTrack "True" -connect sdrT.Out switch.Time - new Viewer2D viewerSwitch - connect switch.Out viewerSwitch.In - - connect sdrT.BoxChange switch.BoxExecute - connect switch.BoxChange viewerSwitch.BoxExecute new LayoutSplit switcher set switcher.Proportion "70" new LayoutSplit switchWindow set switchWindow.Proportion "80" - connect viewerSwitch.Widget switchWindow.Widget1 new LayoutSplit switchTool - set switchTool.Orientation H + set switchTool.Orientation "H" set switchTool.Proportion "50" - connect switch.Widget switchTool.Widget1 - connect checkS.Widget switchTool.Widget2 - - connect switchTool.Widget switchWindow.Widget2 - - connect switchWindow.Widget switcher.Widget1 - connect sdrT.Widget switcher.Widget2 - -//////////////end of Image Switch/////////////////// - -#Multiple inputs for managing the interaction new MultipleInputs mult - connect slider.BoxChange mult.In1 - connect sliderX.BoxChange mult.In2 - connect sliderY.BoxChange mult.In3 - connect viewer1.BoxChange mult.In4 - connect viewer2.BoxChange mult.In5 new MultipleInputs mult2 - connect multF.BoxChange mult2.In1 - connect mult.BoxChange mult2.In2 - -# Execution pipeline for checkboard new MultipleInputs mult3 - connect ly.BoxChange mult3.In1 - connect mult2.BoxChange mult3.In2 - connect imgslice1.BoxChange mult3.In3 - connect imgslice2.BoxChange mult3.In4 - connect multLevels.BoxChange mult3.In5 - - connect mult3.BoxChange cbb.BoxExecute - connect cbb.BoxChange viewerCH.BoxExecute - -#Execution pipeline for Transparency new MultipleInputs mult4 - connect mult2.BoxChange mult4.In1 - connect sdrP.BoxChange mult4.In2 - - connect mult4.BoxChange trans.BoxExecute - connect trans.BoxChange transView.BoxExecute - -/////////////////////////////////////////////////////////////// - -#Layout for the tabs new LayoutTab tabs - connect switcher.Widget tabs.Widget1 - connect checkerBoard.Widget tabs.Widget2 - connect transparency.Widget tabs.Widget3 - -#Layout where the images and the buttons will be displayed new LayoutLine tools - connect sdrZ.Widget tools.Widget1 - connect colorLevel.Widget tools.Widget2 - connect windowLevel.Widget tools.Widget3 - connect saveBut.Widget tools.Widget5 new LayoutSplit convolTools - set convolTools.Orientation H + set convolTools.Orientation "H" set convolTools.Proportion "80" - connect sdrF.Widget convolTools.Widget1 - connect checkF.Widget convolTools.Widget2 - - connect convolTools.Widget tools.Widget4 new LayoutSplit window1 - set window1.WinWidth "600" + set window1.Orientation "V" set window1.Proportion "80" - set window1.Orientation V - connect initialImages.Widget window1.Widget1 - connect buttonsLayout.Widget window1.Widget2 + set window1.WinWidth "600" new LayoutSplit window2 - connect tabs.Widget window2.Widget1 - connect tools.Widget window2.Widget2 - set window2.Proportion "90" + set window2.Proportion "90" new LayoutSplit main - set main.WinWidth "1200" + set main.Orientation "H" set main.Proportion "50" - set main.Orientation H - connect window1.Widget main.Widget1 - connect window2.Widget main.Widget2 + set main.WinWidth "1200" -exec main +new vtkImageDataPointerRelay Box56 + +new ImagesChooserDialogBox Box57 + +new ImagesChooserDialogBox Box58 + +new vtkImageDataPointerRelay Box59 + + +connect viewer1.Widget v1Layout.Widget1 +connect viewer2.Widget v2Layout.Widget1 +connect v1Layout.Widget initialImages.Widget1 +connect v2Layout.Widget initialImages.Widget2 +connect slider.Widget buttonsLayout.Widget1 +connect sliderX.Widget buttonsLayout.Widget2 +connect sliderY.Widget buttonsLayout.Widget3 +connect viewer2.Point transform.CenterPoint +connect slider.Out transform.Angle +connect sliderX.Out transform.ScaleX +connect sliderY.Out transform.ScaleY +connect viewer1.Point reslice1.Origin +connect transform.Out reslice1.Transform +connect imgslice2.Out reslice1.In +connect imgslice1.Out convol1.In +connect reslice1.Out convol2.In +connect properties.LengthZ sdrZ.Max +connect sdrZ.Out imgslice1.Z +connect sdrZ.Out imgslice2.Z +connect sdrZ.BoxChange imgslice1.BoxExecute +connect sdrZ.BoxChange imgslice2.BoxExecute +connect sdrF.Out convol1.Factor +connect sdrF.Out convol2.Factor +connect checkF.Out convol1.On +connect checkF.Out convol2.On +connect sdrF.BoxChange multF.In1 +connect checkF.BoxChange multF.In2 +connect multF.BoxChange convol1.BoxExecute +connect multF.BoxChange convol2.BoxExecute +connect properties.ColorLevel colorLevel.Max +connect properties.MidColorLevel colorLevel.In +connect properties.ColorLevel windowLevel.Max +connect properties.MidColorLevel windowLevel.In +connect colorLevel.Out viewer1.ColorLevel +connect colorLevel.Out viewer2.ColorLevel +connect windowLevel.Out viewer1.WindowLevel +connect windowLevel.Out viewer2.WindowLevel +connect colorLevel.BoxChange multLevels.In1 +connect windowLevel.BoxChange multLevels.In2 +connect multLevels.BoxChange viewer1.BoxExecute +connect multLevels.BoxChange viewer2.BoxExecute +connect reslice1.Out writSave.In +connect fileSave.Out writSave.Filename +connect saveBut.BoxChange fileSave.BoxExecute +connect fileSave.BoxChange writSave.BoxExecute +connect convol1.Out cbb.In1 +connect convol2.Out cbb.In2 +connect colorLevel.Out viewerCH.ColorLevel +connect windowLevel.Out viewerCH.WindowLevel +connect sdr.Out cbb.Cols +connect sdr2.Out cbb.Rows +connect cbb.Out viewerCH.In +connect sdr.Widget ly.Widget2 +connect sdr2.Widget ly.Widget3 +connect viewerCH.Widget checkerBoard.Widget1 +connect ly.Widget checkerBoard.Widget2 +connect convol1.Out trans.In1 +connect convol2.Out trans.In2 +connect sdrP.Out trans.Percent +connect trans.Out transView.In +connect transView.Widget transparency.Widget1 +connect sdrP.Widget transparency.Widget2 +connect colorLevel.Out transView.ColorLevel +connect windowLevel.Out transView.WindowLevel +connect convol1.Out switch.In1 +connect convol2.Out switch.In2 +connect checkS.Out switch.On +connect sdrT.Out switch.Time +connect switch.Out viewerSwitch.In +connect sdrT.BoxChange switch.BoxExecute +connect switch.BoxChange viewerSwitch.BoxExecute +connect viewerSwitch.Widget switchWindow.Widget1 +connect switch.Widget switchTool.Widget1 +connect checkS.Widget switchTool.Widget2 +connect switchTool.Widget switchWindow.Widget2 +connect switchWindow.Widget switcher.Widget1 +connect sdrT.Widget switcher.Widget2 +connect slider.BoxChange mult.In1 +connect sliderX.BoxChange mult.In2 +connect sliderY.BoxChange mult.In3 +connect viewer1.BoxChange mult.In4 +connect viewer2.BoxChange mult.In5 +connect multF.BoxChange mult2.In1 +connect mult.BoxChange mult2.In2 +connect ly.BoxChange mult3.In1 +connect mult2.BoxChange mult3.In2 +connect imgslice1.BoxChange mult3.In3 +connect imgslice2.BoxChange mult3.In4 +connect multLevels.BoxChange mult3.In5 +connect mult3.BoxChange cbb.BoxExecute +connect cbb.BoxChange viewerCH.BoxExecute +connect mult2.BoxChange mult4.In1 +connect sdrP.BoxChange mult4.In2 +connect mult4.BoxChange trans.BoxExecute +connect trans.BoxChange transView.BoxExecute +connect switcher.Widget tabs.Widget1 +connect checkerBoard.Widget tabs.Widget2 +connect transparency.Widget tabs.Widget3 +connect sdrZ.Widget tools.Widget1 +connect colorLevel.Widget tools.Widget2 +connect windowLevel.Widget tools.Widget3 +connect saveBut.Widget tools.Widget5 +connect sdrF.Widget convolTools.Widget1 +connect checkF.Widget convolTools.Widget2 +connect convolTools.Widget tools.Widget4 +connect initialImages.Widget window1.Widget1 +connect buttonsLayout.Widget window1.Widget2 +connect tabs.Widget window2.Widget1 +connect tools.Widget window2.Widget2 +connect window1.Widget main.Widget1 +connect window2.Widget main.Widget2 +connect Box56.Out imgslice2.In +connect Box56.Out viewer2.In +connect Box57.Out Box56.In +connect Box58.Out Box59.In +connect Box59.Out imgslice1.In +connect Box59.Out viewer1.In +connect Box59.Out properties.In +connect Box58.BoxChange properties.BoxExecute +exec main -- 2.47.1