From: Eduardo DAVILA Date: Tue, 2 Aug 2016 12:38:31 +0000 (+0200) Subject: #3002 CreaMiniTools Feature New Normal - GaussianSmoothing minitool X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4b39f709a6bb16da22d482547fe0838afc016e21;p=creaMiniTools.git #3002 CreaMiniTools Feature New Normal - GaussianSmoothing minitool --- diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg new file mode 100644 index 0000000..328e34e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg @@ -0,0 +1,279 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:23 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-20.135814:74.544301:-900.000000 +25.439186:64.544301:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +87.302159:3.501587:-900.000000 +132.877159:-6.498413:-900.000000 +FIN_BOX +BOX +vtk:ImageGaussianSmooth:Box02 +ISEXEC:FALSE +-92.975342:16.671539:-900.000000 +-21.800342:6.671539:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box03 +ISEXEC:FALSE +-16.394845:50.739854:-900.000000 +54.780155:40.739854:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box05 +ISEXEC:FALSE +12.619602:-1.070085:-900.000000 +73.259602:-11.070085:-900.000000 +PORT +WinTitle:"dddd" +FIN_BOX +BOX +wx:LayoutSplit:Box06 +ISEXEC:TRUE +-46.343668:-115.304835:-900.000000 +-0.768668:-125.304835:-900.000000 +PORT +Orientation:"H" +PORT +Proportion:"20" +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-64.830355:-62.532264:-900.000000 +-19.255355:-72.532264:-900.000000 +FIN_BOX +BOX +wx:InputText:Box08 +ISEXEC:FALSE +-205.898495:54.857777:-900.000000 +-153.595252:44.857777:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevX" +FIN_BOX +BOX +wx:InputText:Box09 +ISEXEC:FALSE +-156.759039:53.366353:-900.000000 +-111.184039:43.366353:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevY" +FIN_BOX +BOX +wx:InputText:Box10 +ISEXEC:FALSE +-104.106766:49.860335:-900.000000 +-58.531766:39.860335:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevZ" +FIN_BOX +BOX +wx:LayoutLine:Box11 +ISEXEC:FALSE +-162.055732:14.971535:-900.000000 +-116.480732:4.971535:-900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:CommandButton:Box12 +ISEXEC:FALSE +-56.297422:-7.890677:-900.000000 +-10.722422:-17.890677:-900.000000 +PORT +Label:"Refresh" +FIN_BOX +BOX +toolsbbtk:SaveMHD-Button:Box14 +ISEXEC:FALSE +-73.987401:-31.099944:-900.000000 +-28.412401:-41.099944:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box15 +ISEXEC:FALSE +-2.736825:-98.913281:-900.000000 +42.838175:-108.913281:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box16 +ISEXEC:FALSE +91.923759:-16.903668:-900.000000 +137.498759:-26.903668:-900.000000 +PORT +WinTitle:"Image" +FIN_BOX +BOX +wx:LayoutLine:Box17 +ISEXEC:FALSE +23.058759:-18.153994:-900.000000 +68.633759:-28.153994:-900.000000 +PORT +WinTitle:"Image" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box19 +ISEXEC:FALSE +-17.547618:-33.002400:-900.000000 +53.627382:-43.002400:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box20 +ISEXEC:FALSE +8.238559:-68.927404:-900.000000 +53.813559:-78.927404:-900.000000 +PORT +WinTitle:"Smooth" +FIN_BOX +BOX +wx:LayoutTab:Box21 +ISEXEC:FALSE +92.147564:-64.754573:-900.000000 +149.707564:-74.754573:-900.000000 +PORT +WinTitle:"Original" +FIN_BOX +BOX +wx:LayoutLine:Box22 +ISEXEC:FALSE +-9.423107:-48.704012:-900.000000 +36.151893:-58.704012:-900.000000 +PORT +WinTitle:"Info" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box23 +ISEXEC:FALSE +73.286802:-31.773522:-900.000000 +144.461802:-41.773522:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box24 +ISEXEC:FALSE +81.411313:-47.475134:-900.000000 +126.986313:-57.475134:-900.000000 +PORT +WinTitle:"Info" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box25 +ISEXEC:FALSE +48.798878:67.882239:-900.000000 +119.973878:57.882239:-900.000000 +FIN_BOX +CONNECTIONS:31 +CONNECTION +Box03:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box06:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box11:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box11:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box07:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box16:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box02:StdDevX +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box02:StdDevY +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box02:StdDevZ +NumberOfControlPoints:0 +CONNECTION +Box12:BoxChange:Box17:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box19:in +NumberOfControlPoints:0 +CONNECTION +Box12:BoxChange:Box19:boxExecute +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box19:widget:Box22:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box23:widget:Box24:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box20:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box20:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box21:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box24:Widget:Box21:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box23:in +NumberOfControlPoints:0 +CONNECTION +Box25:FileName:Box23:FileName +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs new file mode 100644 index 0000000..47bc54b --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs @@ -0,0 +1,150 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include toolsbbtk +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ViewerNV Box01 + +new vtk:ImageGaussianSmooth Box02 + +new vtk:vtkImageDataPointerRelay Box03 + +new creaMaracasVisu:ViewerNV Box05 + set Box05.WinTitle "dddd" + +new wx:LayoutSplit Box06 + set Box06.Orientation "H" + set Box06.Proportion "20" + +new wx:LayoutLine Box07 + +new wx:InputText Box08 + set Box08.In "0.0" + set Box08.Title "StdDevX" + +new wx:InputText Box09 + set Box09.In "0.0" + set Box09.Title "StdDevY" + +new wx:InputText Box10 + set Box10.In "0.0" + set Box10.Title "StdDevZ" + +new wx:LayoutLine Box11 + set Box11.Orientation "V" + +new wx:CommandButton Box12 + set Box12.Label "Refresh" + +new toolsbbtk:SaveMHD-Button Box14 + +new wx:LayoutTab Box15 + +new wx:LayoutLine Box16 + set Box16.WinTitle "Image" + +new wx:LayoutLine Box17 + set Box17.WinTitle "Image" + +new toolsbbtk:ImageVtkPropertiesWidget Box19 + +new wx:LayoutTab Box20 + set Box20.WinTitle "Smooth" + +new wx:LayoutTab Box21 + set Box21.WinTitle "Original" + +new wx:LayoutLine Box22 + set Box22.WinTitle "Info" + +new toolsbbtk:ImageVtkPropertiesWidget Box23 + +new wx:LayoutLine Box24 + set Box24.WinTitle "Info" + +new creaImageIO:ImagesChooserDialogBox Box25 + + +connect Box03.Out Box01.In + +connect Box03.Out Box02.In + +connect Box02.Out Box05.In + +connect Box07.Widget Box06.Widget1 + +connect Box08.Widget Box11.Widget1 + +connect Box09.Widget Box11.Widget2 + +connect Box10.Widget Box11.Widget3 + +connect Box12.Widget Box07.Widget2 + +connect Box11.Widget Box07.Widget1 + +connect Box14.Widget Box07.Widget3 + +connect Box15.Widget Box06.Widget2 + +connect Box05.Widget Box17.Widget1 + +connect Box01.Widget Box16.Widget1 + +connect Box08.Out Box02.StdDevX + +connect Box09.Out Box02.StdDevY + +connect Box10.Out Box02.StdDevZ + +connect Box12.BoxChange Box17.BoxExecute + +connect Box02.Out Box14.In + +connect Box02.Out Box19.in + +connect Box12.BoxChange Box19.boxExecute + +connect Box20.Widget Box15.Widget1 + +connect Box21.Widget Box15.Widget2 + +connect Box19.widget Box22.Widget1 + +connect Box23.widget Box24.Widget1 + +connect Box17.Widget Box20.Widget1 + +connect Box22.Widget Box20.Widget2 + +connect Box16.Widget Box21.Widget1 + +connect Box24.Widget Box21.Widget2 + +connect Box25.Out Box03.In + +connect Box03.Out Box23.in + +connect Box25.FileName Box23.FileName + + + +# Complex input ports +exec Box06 diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg index 0a6a28e..5db359c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/daniel/creatis/all/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg # ---------------------------------- APP_START @@ -22,7 +22,7 @@ ISEXEC:TRUE -35.286040:-48.757534:-900.000000 22.273960:-58.757534:-900.000000 PORT -WinHeight:"500" +WinHeight:"600" PORT WinTitle:"CreaTools" PORT diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs index efd850b..6d38d4c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /home/daniel/creatis/all/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs # ---------------------------------- # BBTK GEditor Script @@ -15,18 +15,18 @@ author "Author ??" description "Description ??" category "application" -new CommandMenu Box00 +new creaMiniTools:CommandMenu Box00 -new LayoutTab Box01 - set Box01.WinHeight "500" +new wx:LayoutTab Box01 + set Box01.WinHeight "600" set Box01.WinTitle "CreaTools" set Box01.WinWidth "700" -new maxiToolsMenu Box05 +new creaMiniTools:maxiToolsMenu Box05 -new ImageToolsMenu Box06 +new creaMiniTools:ImageToolsMenu Box06 -new helpMenu Box04 +new creaMiniTools:helpMenu Box04 connect Box05.widget Box01.Widget1 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg index ed0fd00..0f2eb91 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg @@ -16,7 +16,7 @@ widget 44.851582:-144.043083:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:0 -BOXES:43 +BOXES:46 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -353,7 +353,31 @@ In0:"bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" PORT In1:"start /b bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" FIN_BOX -CONNECTIONS:53 +BOX +wx:CommandButton:Box52 +ISEXEC:FALSE +174.240812:-3.175598:-900.000000 +219.815812:-13.175598:-900.000000 +PORT +Label:"Gaussian Smoothing" +FIN_BOX +BOX +std:ExecSystemCommand:Box53 +ISEXEC:FALSE +171.798391:-33.460885:-900.000000 +242.973391:-43.460885:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box54 +ISEXEC:FALSE +185.046496:-17.092310:-900.000000 +230.621496:-27.092310:-900.000000 +PORT +In0:"bbi creaMiniTools/appli/GaussianSmoothing.bbs &" +PORT +In1:"start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" +FIN_BOX +CONNECTIONS:56 CONNECTION Box00:BoxChange:Box04:BoxExecute NumberOfControlPoints:0 @@ -513,4 +537,13 @@ NumberOfControlPoints:0 CONNECTION Box33:SystemType:Box51:In NumberOfControlPoints:0 +CONNECTION +Box52:BoxChange:Box53:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box53:In +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box19:Widget9 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs index bd1faed..081cd6b 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs @@ -141,6 +141,15 @@ new std:StringSelect Box51 set Box51.In0 "bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" set Box51.In1 "start /b bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" +new wx:CommandButton Box52 + set Box52.Label "Gaussian Smoothing" + +new std:ExecSystemCommand Box53 + +new std:StringSelect Box54 + set Box54.In0 "bbi creaMiniTools/appli/GaussianSmoothing.bbs &" + set Box54.In1 "start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" + connect Box00.BoxChange Box04.BoxExecute connect Box02.BoxChange Box06.BoxExecute @@ -194,6 +203,9 @@ connect Box49.BoxChange Box50.BoxExecute connect Box51.Out Box50.In connect Box49.Widget Box19.Widget8 connect Box33.SystemType Box51.In +connect Box52.BoxChange Box53.BoxExecute +connect Box54.Out Box53.In +connect Box52.Widget Box19.Widget9 # Complex input ports