# --------------------------------------------------------------------- # # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image # pour la Sant�) # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton # Previous Authors : Laurent Guigues, Jean-Pierre Roux # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify and/ or redistribute the software under the terms of the CeCILL-B # license as circulated by CEA, CNRS and INRIA at the following URL # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # or in the file LICENSE.txt. # # As a counterpart to the access to the source code and rights to copy, # modify and redistribute granted by the license, users are provided only # with a limited warranty and the software's author, the holder of the # economic rights, and the successive licensors have only limited # liability. # # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ */ # ---------------------------------- # - 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 toolsbbtk 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