From 4401c25ce16e35ca56aeaa7342a6c0d277ac9548 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 6 Feb 2026 14:06:41 +0100 Subject: [PATCH] #3543 TubularStructures --- .../appli/exampleTubularStructures_Frangi.bbg | 179 ++++++++++++++++++ .../appli/exampleTubularStructures_Frangi.bbs | 102 ++++++++++ .../appli/exampleTubularStructures_Sato.bbg | 175 +++++++++++++++++ .../appli/exampleTubularStructures_Sato.bbs | 100 ++++++++++ 4 files changed, 556 insertions(+) create mode 100644 packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbg create mode 100644 packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbs create mode 100644 packages/itk/bbs/appli/exampleTubularStructures_Sato.bbg create mode 100644 packages/itk/bbs/appli/exampleTubularStructures_Sato.bbs diff --git a/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbg b/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbg new file mode 100644 index 0000000..b3e6ea0 --- /dev/null +++ b/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbg @@ -0,0 +1,179 @@ +# ---------------------------------- +# - BBTKGEditor v 1.6 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/bbtk/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +EXPORTFORMAT:0 +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:14 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-41.282906:47.760276:-900.000000 +-19.732906:45.260276:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box01 +ISEXEC:FALSE +-43.052679:38.911410:-900.000000 +-19.902679:36.411410:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-55.308489:24.824570:-900.000000 +-13.188489:22.324570:-900.000000 +PORT +WinTitle:"Image" +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box04 +ISEXEC:FALSE +-2.170013:29.995648:-900.000000 +20.654987:27.495648:-900.000000 +PORT +OutputFormat:"VTK_DOUBLE" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box05 +ISEXEC:FALSE +-7.719266:0.004621:-900.000000 +34.400734:-2.495379:-900.000000 +PORT +WinTitle:"Sato" +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +wx:LayoutTab:Box06 +ISEXEC:FALSE +-26.109758:-32.559295:-900.000000 +8.970242:-35.059295:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-69.181320:-28.857901:-900.000000 +-34.101320:-31.357901:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box09 +ISEXEC:TRUE +-55.050133:-44.143657:-900.000000 +-32.995133:-46.643657:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box10 +ISEXEC:TRUE +-28.722930:-44.232301:-900.000000 +-4.202930:-46.732301:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaVtk:MarchingCubes2:Box11 +ISEXEC:FALSE +-95.070884:-11.394276:-900.000000 +-72.785884:-13.894276:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:PolyDataToActor_Widget:Box12 +ISEXEC:FALSE +-93.442213:-19.918407:-900.000000 +-70.422213:-22.418407:-900.000000 +FIN_BOX +BOX +wx:Slider:Box13 +ISEXEC:FALSE +-72.688571:-6.460746:-900.000000 +-41.128571:-8.960746:-900.000000 +PORT +In:"25" +PORT +Label:"true" +PORT +Max:"255" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Threshold" +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box15 +ISEXEC:FALSE +-85.772681:2.190822:-900.000000 +-62.947681:-0.309178:-900.000000 +PORT +A:"0" +PORT +B:"255" +PORT +OutputFormat:"VTK_SHORT" +PORT +Type:"2" +FIN_BOX +BOX +itk:TubularStructures_Frangi:Box16 +ISEXEC:FALSE +32.087000:20.120110:-900.000000 +55.047000:17.620110:-900.000000 +FIN_BOX +CONNECTIONS:16 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box06:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box10:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box12:polydata +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box12:widget:Box07:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box11:Value +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box12:render +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box15:In +NumberOfControlPoints:0 +APP_END diff --git a/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbs b/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbs new file mode 100644 index 0000000..7ca8ef0 --- /dev/null +++ b/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbs @@ -0,0 +1,102 @@ +# ---------------------------------- +# - BBTKGEditor v 1.6 BBS BlackBox Script +# - /Users/davila/Creatis/C23/creatools_source/bbtk/packages/itk/bbs/appli/exampleTubularStructures_Frangi.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include creaVtk +include itk + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ImageChangeInformation Box01 + +new creaMaracasVisu:ViewerNV Box02 + set Box02.WinTitle "Image" + set Box02.nTypeView "6 1 2 0" + +new vtk:RescaleSlopeIntercept Box04 + set Box04.OutputFormat "VTK_DOUBLE" + +new creaMaracasVisu:ViewerNV Box05 + set Box05.WinTitle "Sato" + set Box05.nTypeView "6 1 2 0" + +new wx:LayoutTab Box06 + +new wx:LayoutLine Box07 + +new creaVtk:OutputWindow Box09 + +new wx:LayoutSplit Box10 + set Box10.Orientation "H" + +new creaVtk:MarchingCubes2 Box11 + +new creaMaracasVisu:PolyDataToActor_Widget Box12 + +new wx:Slider Box13 + set Box13.In "25" + set Box13.Label "true" + set Box13.Max "255" + set Box13.Min "0" + set Box13.ReactiveOnTrack "true" + set Box13.Title "Threshold" + +new vtk:RescaleSlopeIntercept Box15 + set Box15.A "0" + set Box15.B "255" + set Box15.OutputFormat "VTK_SHORT" + set Box15.Type "2" + +new itk:TubularStructures_Frangi Box16 + + +connect Box00.Out Box01.In + +connect Box01.Out Box02.In + +connect Box01.Out Box04.In + +connect Box02.Widget Box06.Widget2 + +connect Box05.Widget Box06.Widget4 + +connect Box07.Widget Box10.Widget1 + +connect Box06.Widget Box10.Widget2 + +connect Box11.Out Box12.polydata + +connect Box13.Widget Box07.Widget2 + +connect Box12.widget Box07.Widget4 + +connect Box15.Out Box11.In + +connect Box13.Out Box11.Value + +connect Box02.Renderer1 Box12.render + +connect Box04.Out Box16.In + +connect Box16.Out Box05.In + +connect Box16.Out Box15.In + + + +# Complex input ports +exec Box09 +exec Box10 diff --git a/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbg b/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbg new file mode 100644 index 0000000..7ba05ff --- /dev/null +++ b/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbg @@ -0,0 +1,175 @@ +# ---------------------------------- +# - BBTKGEditor v 1.6 BBG BlackBox Diagram file +# - /Users/davila/Creatis/C23/creatools_source/bbtk/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +EXPORTFORMAT:0 +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:14 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-41.282906:47.760276:-900.000000 +-19.732906:45.260276:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box01 +ISEXEC:FALSE +-43.052679:38.911410:-900.000000 +-19.902679:36.411410:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box02 +ISEXEC:FALSE +-55.308489:24.824570:-900.000000 +-13.188489:22.324570:-900.000000 +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +itk:TubularStructures_Sato:Box03 +ISEXEC:FALSE +-3.515041:21.536132:-900.000000 +19.279959:19.036132:-900.000000 +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box04 +ISEXEC:FALSE +-2.170013:29.995648:-900.000000 +20.654987:27.495648:-900.000000 +PORT +OutputFormat:"VTK_DOUBLE" +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box05 +ISEXEC:FALSE +-5.218827:11.938533:-900.000000 +36.901173:9.438533:-900.000000 +PORT +nTypeView:"6 1 2 0" +FIN_BOX +BOX +wx:LayoutTab:Box06 +ISEXEC:FALSE +-26.109758:-32.559295:-900.000000 +8.970242:-35.059295:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-69.181320:-28.857901:-900.000000 +-34.101320:-31.357901:-900.000000 +FIN_BOX +BOX +creaVtk:OutputWindow:Box09 +ISEXEC:TRUE +-55.050133:-44.143657:-900.000000 +-32.995133:-46.643657:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box10 +ISEXEC:TRUE +-28.722930:-44.232301:-900.000000 +-4.202930:-46.732301:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaVtk:MarchingCubes2:Box11 +ISEXEC:FALSE +-95.070884:-11.394276:-900.000000 +-72.785884:-13.894276:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:PolyDataToActor_Widget:Box12 +ISEXEC:FALSE +-93.442213:-19.918407:-900.000000 +-70.422213:-22.418407:-900.000000 +FIN_BOX +BOX +wx:Slider:Box13 +ISEXEC:FALSE +-71.552008:-3.505682:-900.000000 +-39.992008:-6.005682:-900.000000 +PORT +In:"25" +PORT +Label:"true" +PORT +Max:"255" +PORT +Min:"0" +PORT +ReactiveOnTrack:"true" +PORT +Title:"Threshold" +FIN_BOX +BOX +vtk:RescaleSlopeIntercept:Box15 +ISEXEC:FALSE +-85.772681:2.190822:-900.000000 +-62.947681:-0.309178:-900.000000 +PORT +A:"0" +PORT +B:"255" +PORT +OutputFormat:"VTK_SHORT" +PORT +Type:"2" +FIN_BOX +CONNECTIONS:16 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box01:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box06:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Widget:Box10:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box12:polydata +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box15:In +NumberOfControlPoints:0 +CONNECTION +Box12:widget:Box07:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box11:Value +NumberOfControlPoints:0 +CONNECTION +Box02:Renderer1:Box12:render +NumberOfControlPoints:0 +APP_END diff --git a/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbs b/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbs new file mode 100644 index 0000000..8b53a9f --- /dev/null +++ b/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbs @@ -0,0 +1,100 @@ +# ---------------------------------- +# - BBTKGEditor v 1.6 BBS BlackBox Script +# - /Users/davila/Creatis/C23/creatools_source/bbtk/packages/itk/bbs/appli/exampleTubularStructures_Sato.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include itk +include wx +include creaVtk + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ImageChangeInformation Box01 + +new creaMaracasVisu:ViewerNV Box02 + set Box02.nTypeView "6 1 2 0" + +new itk:TubularStructures_Sato Box03 + +new vtk:RescaleSlopeIntercept Box04 + set Box04.OutputFormat "VTK_DOUBLE" + +new creaMaracasVisu:ViewerNV Box05 + set Box05.nTypeView "6 1 2 0" + +new wx:LayoutTab Box06 + +new wx:LayoutLine Box07 + +new creaVtk:OutputWindow Box09 + +new wx:LayoutSplit Box10 + set Box10.Orientation "H" + +new creaVtk:MarchingCubes2 Box11 + +new creaMaracasVisu:PolyDataToActor_Widget Box12 + +new wx:Slider Box13 + set Box13.In "25" + set Box13.Label "true" + set Box13.Max "255" + set Box13.Min "0" + set Box13.ReactiveOnTrack "true" + set Box13.Title "Threshold" + +new vtk:RescaleSlopeIntercept Box15 + set Box15.A "0" + set Box15.B "255" + set Box15.OutputFormat "VTK_SHORT" + set Box15.Type "2" + + +connect Box00.Out Box01.In + +connect Box01.Out Box02.In + +connect Box01.Out Box04.In + +connect Box04.Out Box03.In + +connect Box02.Widget Box06.Widget2 + +connect Box05.Widget Box06.Widget4 + +connect Box03.Out Box05.In + +connect Box07.Widget Box10.Widget1 + +connect Box06.Widget Box10.Widget2 + +connect Box11.Out Box12.polydata + +connect Box13.Widget Box07.Widget2 + +connect Box03.Out Box15.In + +connect Box12.widget Box07.Widget4 + +connect Box15.Out Box11.In + +connect Box13.Out Box11.Value + +connect Box02.Renderer1 Box12.render + + + +# Complex input ports +exec Box09 +exec Box10 -- 2.52.0