#============================================================================== # # Project: SharpImage # Module: CastToF.py # Language: IronPython # Author: Dan Mueller # Date: $Date: 2007-07-06 10:57:00 +1000 (Fri, 06 Jul 2007) $ # Revision: $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 Cast from Cast import * class CastToFScript(CastScript): # ------------------------------------------------------------------------- Name = "CastToF" Help = """Casts input pixels to float pixel type.""" Parameters = """None""" # ------------------------------------------------------------------------- def Initialise(self): """ Initialise the environment for running this script. """ """ NOTE: This function is invoked on the main UI thread. """ ImageToImageScriptObject.Initialise( self ) self.Output = itkImage.New( itkPixelType.F, self.Input.Dimension )