#============================================================================== # # Project: SharpImage # Module: RescaleIntensityToSS.py # Language: IronPython # Author: Dan Mueller # $Date: 2007-07-06 10:57:00 +1000 (Fri, 06 Jul 2007) $ # $Revision: 2 $ # # Copyright (c) Queensland University of Technology (QUT) 2007. # All rights reserved. # # This software is distributed WITHOUT ANY WARRANTY; without even # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the above copyright notices for more information. # #============================================================================== # Import the base script class import RescaleIntensity from RescaleIntensity import * # Add reference and import Intensity library clr.AddReference("ManagedITK.IntensityFilters") from itk import * class RescaleIntensityToSSScript(RescaleIntensityScript): # ------------------------------------------------------------------------- Name = "RescaleIntensityToSS" Help = """Applies a linear transformation to the intensity levels of the input Image. The output pixel type will be Signed Short, and the intensity values will be linearly transformed to be in the range [-32768..32767].""" Parameters = """None""" OutputMinimum = -32768 OutputMaximum = 32767 OutputPixelType = itkPixelType.SS # -------------------------------------------------------------------------