#============================================================================== # # Project: SharpImage # Module: RescaleIntensityToUC.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 RescaleIntensityToUCScript(RescaleIntensityScript): # ------------------------------------------------------------------------- Name = "RescaleIntensityToUC" Help = """Applies a linear transformation to the intensity levels of the input Image. The output pixel type will be Unsigned Char, and the intensity values will be linearly transformed to be in the range [0..255].""" Parameters = """None""" OutputMinimum = 0 OutputMaximum = 255 OutputPixelType = itkPixelType.UC # -------------------------------------------------------------------------