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