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

itkStandardDeviationPerComponentSampleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkStandardDeviationPerComponentSampleFilter.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 __itkStandardDeviationPerComponentSampleFilter_h
00019 #define __itkStandardDeviationPerComponentSampleFilter_h
00020 
00021 #include "itkProcessObject.h"
00022 
00023 #include "itkArray.h"
00024 #include "itkVariableSizeMatrix.h"
00025 #include "itkSimpleDataObjectDecorator.h"
00026 #include "itkNumericTraitsFixedArrayPixel.h"
00027 
00028 namespace itk { 
00029 namespace Statistics {
00030   
00047 template< class TSample >
00048 class ITK_EXPORT StandardDeviationPerComponentSampleFilter :
00049     public ProcessObject
00050 {
00051 public:
00053   typedef StandardDeviationPerComponentSampleFilter   Self;
00054   typedef ProcessObject                               Superclass;
00055   typedef SmartPointer<Self>                          Pointer;
00056   typedef SmartPointer<const Self>                    ConstPointer;
00057   typedef TSample                                     SampleType;
00058 
00060   itkTypeMacro(StandardDeviationPerComponentSampleFilter, ProcessObject);
00061   itkNewMacro(Self);
00063 
00065   typedef typename TSample::MeasurementVectorSizeType MeasurementVectorSizeType;
00066 
00068   typedef typename TSample::MeasurementVectorType                     MeasurementVectorType;
00069   typedef typename NumericTraits< MeasurementVectorType >::RealType   MeasurementVectorRealType;
00070 
00072   void SetInput( const SampleType * sample );
00073   const SampleType *  GetInput() const;
00075 
00078   typedef  SimpleDataObjectDecorator< MeasurementVectorRealType >  MeasurementVectorRealDecoratedType;
00079 
00080   typedef MeasurementVectorRealDecoratedType OutputType;
00081   
00083   const MeasurementVectorRealType GetStandardDeviationPerComponent() const;
00084   const MeasurementVectorRealDecoratedType* GetStandardDeviationPerComponentOutput() const;
00086 
00088   const MeasurementVectorRealType GetMeanPerComponent() const;
00089   const MeasurementVectorRealDecoratedType* GetMeanPerComponentOutput() const;
00091 
00092 protected:
00093   StandardDeviationPerComponentSampleFilter(const Self&); //purposely not implemented
00094   void operator=(const Self&); //purposely not implemented
00095 
00096   StandardDeviationPerComponentSampleFilter();
00097   virtual ~StandardDeviationPerComponentSampleFilter();
00098   void PrintSelf(std::ostream& os, Indent indent) const;
00099 
00101   typedef DataObject::Pointer DataObjectPointer;
00102 
00103   virtual DataObjectPointer MakeOutput(unsigned int idx);
00104 
00105   void GenerateData();
00106 
00107   MeasurementVectorSizeType GetMeasurementVectorSize() const;
00108 
00109 private:
00110 
00111 }; // end of class
00112     
00113 } // end of namespace Statistics 
00114 } // end of namespace itk 
00115 
00116 #ifndef ITK_MANUAL_INSTANTIATION
00117 #include "itkStandardDeviationPerComponentSampleFilter.txx"
00118 #endif
00119 
00120 #endif
00121 

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