#============================================================================== # # Project: SharpImage # Module: MaximumProjection.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 ProjectionScript from ProjectionScript import * # Add reference and import required libraries clr.AddReference("ManagedITK.ProjectionFilters") clr.AddReference("ManagedITK.ResizeFilters") from itk import * class SumProjectionScript(ProjectionScriptObject): # ------------------------------------------------------------------------- Name = "MaximumProjection" Help = """Computes the sum intensity projection along the given axis. The ProjectionDimension defaults to the last dimension (ie. the z-axis for 3D). The StartIndex and EndIndex specify the slices along the ProjectionDimension in which the accumulation occurs. If unspecified, the default is the whole size.""" # ------------------------------------------------------------------------- def GetProjectionFilter(self): """ Returns the actual Projection filter to invoke. Subclasses override this method. """ return itkSumProjectionImageFilter.New( self.Input, self.Input )