# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /home/gonzalez/Documents/CREATOOLS/wt_library/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include vtk include itk include std include wt author "Author ??" description "Description ??" category "" new LoadHola Box00 new BinaryThresholdImageFilter Box02 set Box02.InsideValue "255" set Box02.LowerThreshold "1250" set Box02.OutsideValue "0" set Box02.UpperThreshold "1500" new MarchingCubes Box05 set Box05.ComputeNormalsOn "true" set Box05.ComputeScalarsOn "false" set Box05.Value "128" new ImageContinuousErode3D Box06 set Box06.KernelSizeX "3" set Box06.KernelSizeY "3" set Box06.KernelSizeZ "3" new SegmentationConnectivity Box09 set Box09.PositionXYZ "73 101 93" set Box09.ThresholdMinMax "200 300" new ConcatStrings Box08 set Box08.In1 "/home/gonzalez/Documents/pruebaResources/" new ConcatStrings Box10 set Box10.In1 "holaPP" set Box10.In3 "_" set Box10.In5 ".vtk" new ViewerNVWeb Box12 set Box12.ImagePath "hola.nii" new PolyDataWriter Box14 new Slider Box15 set Box15.In "1250" set Box15.Max "1449" set Box15.Min "500" set Box15.Title "LowerThreshold" new Slider Box16 set Box16.In "1500" set Box16.Max "2500" set Box16.Min "1450" set Box16.Title "UpperThresHold" new LayoutLine Box17 new CommandButton Box21 set Box21.Label "Run" new AddObjectToViewerWeb Box22 new configServerWT Box27 set Box27.DocRoot "/home/gonzalez/Documents/pruebaResources/imagennii" set Box27.Port "8083" new LayoutSplit Box28 set Box28.Orientation "h" connect Box00.Out Box02.In connect Box02.Out Box06.In connect Box06.Out Box09.In connect Box09.Out Box05.In connect Box05.Out Box14.In connect Box10.Out Box08.In2 connect Box08.Out Box14.Filename connect Box15.Out Box10.In2 connect Box15.Out Box02.LowerThreshold connect Box16.Out Box02.UpperThreshold connect Box16.Out Box10.In4 connect Box15.Widget Box17.Widget2 connect Box16.Widget Box17.Widget3 connect Box21.BoxChange Box14.BoxExecute connect Box21.Widget Box17.Widget5 connect Box10.Out Box22.Mesh connect Box12.viewer1 Box22.Viewer3D connect Box22.Widget Box17.Widget8 connect Box21.BoxChange Box22.BoxExecute connect Box17.Widget Box28.Widget1 connect Box12.Widget Box28.Widget2 # Complex input ports exec Box27 exec Box28