Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMeanSampleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanSampleFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:58 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkMeanSampleFilter_h
00019 #define __itkMeanSampleFilter_h
00020 
00021 #include "itkProcessObject.h"
00022 #include "itkArray.h"
00023 #include "itkSimpleDataObjectDecorator.h"
00024 #include "itkDataObject.h"
00025 
00026 namespace itk { 
00027 namespace Statistics {
00028   
00046 template< class TSample >
00047 class ITK_EXPORT MeanSampleFilter : public ProcessObject
00048 {
00049 public:
00051   typedef MeanSampleFilter                Self;
00052   typedef ProcessObject                   Superclass;
00053   typedef SmartPointer<Self>              Pointer;
00054   typedef SmartPointer<const Self>        ConstPointer;
00055   typedef TSample                         SampleType;
00056 
00058   itkTypeMacro(MeanSampleFilter, ProcessObject);
00059   itkNewMacro(Self);
00061 
00063   typedef   unsigned int                              MeasurementVectorSizeType;
00064   typedef   typename TSample::MeasurementVectorType   MeasurementVectorType;
00065   typedef   typename TSample::MeasurementType         MeasurementType;
00066 
00068   void SetInput( const SampleType * sample );
00069   const SampleType *  GetInput() const;
00071 
00074   typedef  SimpleDataObjectDecorator< MeasurementVectorType >  MeasurementVectorDecoratedType;
00075 
00076   typedef MeasurementVectorDecoratedType OutputType;
00077   
00079   const MeasurementVectorDecoratedType * GetOutput() const;
00080   const MeasurementVectorType            GetMean() const;
00082 
00083 protected:
00084   MeanSampleFilter();
00085   virtual ~MeanSampleFilter();
00086   void PrintSelf(std::ostream& os, Indent indent) const;
00087 
00089   typedef DataObject::Pointer DataObjectPointer;
00090 
00091   virtual DataObjectPointer MakeOutput(unsigned int idx);
00092 
00093   void GenerateData();
00094 
00095 private:
00096   MeanSampleFilter(const Self&); //purposely not implemented
00097   void operator=(const Self&); //purposely not implemented
00098 
00099 }; // end of class
00100     
00101 } // end of namespace Statistics 
00102 } // end of namespace itk 
00103 
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkMeanSampleFilter.txx"
00106 #endif
00107 
00108 #endif
00109 

Generated at Tue Sep 15 03:55:56 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000