# ---------------------------------- # - BBTKGEditor v 1.2 BBS BlackBox Script # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include vtk include creaMiniTools include wx include itk include creaMiniToolsBase include std author "Author ??" description "Description ??" category "" new RescaleSlopeIntercept Box03 set Box03.Type 0 new ImagePropertiesWidget Box06 new ImagePropertiesWidget Box07 new FileSelector Box10 new ImageReader Box11 new LayoutLine Box12 new InputText Box13 set Box13.In 0 set Box13.Title Slope new InputText Box14 set Box14.In 1 set Box14.Title "Rescale" new OutputText Box15 set Box15.In "NewPixel = Rescale * Pixel + Slope" new LayoutLine Box16 set Box16.Orientation H new CommandButton Box17 set Box17.Label "Run RescaleSlopeIntercept" new SaveMHD-Button Box20 new RadioButton Box25 set Box25.In 2 set Box25.In0 VTK_UNSIGNED_CHAR set Box25.In1 VTK_SIGNED_CHAR set Box25.In2 VTK_UNSIGNED_SHORT set Box25.In3 VTK_SHORT set Box25.In4 VTK_UNSIGNED_INT set Box25.In5 VTK_SIGNED_INT set Box25.In6 VTK_UNSIGNED_LONG set Box25.In7 VTK_SIGNED_LONG set Box25.In8 VTK_FLOAT set Box25.In9 VTK_DOUBLE set Box25.Title "Output Data Format" new StringSelect Box26 set Box26.In0 "VTK_UNSIGNED_CHAR" set Box26.In1 "VTK_SIGNED_CHAR" set Box26.In2 "VTK_UNSIGNED_SHORT" set Box26.In3 "VTK_SIGNED_SHORT" set Box26.In4 "VTK_UNSIGNED_INT" set Box26.In5 "VTK_SIGNED_INT" set Box26.In6 "VTK_UNSIGNED_LONG" set Box26.In7 "VTK_SIGNED_LONG" set Box26.In8 "VTK_FLOAT" set Box26.In9 "VTK_DOUBLE" new LayoutSplit Box27 set Box27.Proportion 15 set Box27.WinHeight 300 set Box27.WinWidth 300 new LayoutSplit Box33 set Box33.Proportion 90 new LayoutSplit Box34 connect Box03.Out Box07.in connect Box10.Out Box11.In connect Box15.Widget Box12.Widget1 connect Box06.widget Box16.Widget1 connect Box03.Out Box20.In connect Box26.Out Box03.OutputFormat connect Box25.Out Box26.In connect Box14.Out Box03.A connect Box13.Out Box03.B connect Box07.widget Box27.Widget2 connect Box20.Widget Box27.Widget1 connect Box14.Widget Box12.Widget2 connect Box13.Widget Box12.Widget3 connect Box11.Out Box03.In connect Box17.BoxChange Box27.BoxExecute connect Box11.Out Box06.in connect Box17.Widget Box33.Widget2 connect Box16.Widget Box33.Widget1 connect Box25.Widget Box34.Widget2 connect Box12.Widget Box34.Widget1 connect Box34.Widget Box16.Widget2 exec Box33