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

itkCovarianceSampleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCovarianceSampleFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:55 $
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 __itkCovarianceSampleFilter_h
00019 #define __itkCovarianceSampleFilter_h
00020 
00021 #include "itkProcessObject.h"
00022 
00023 #include "itkArray.h"
00024 #include "itkVariableSizeMatrix.h"
00025 #include "itkSimpleDataObjectDecorator.h"
00026 
00027 namespace itk { 
00028 namespace Statistics {
00029   
00046 template< class TSample >
00047 class ITK_EXPORT CovarianceSampleFilter :
00048     public ProcessObject
00049 {
00050 public:
00052   typedef CovarianceSampleFilter          Self;
00053   typedef ProcessObject                   Superclass;
00054   typedef SmartPointer<Self>              Pointer;
00055   typedef SmartPointer<const Self>        ConstPointer;
00056   typedef TSample                         SampleType;
00057 
00059   itkTypeMacro(CovarianceSampleFilter, ProcessObject);
00060   itkNewMacro(Self);
00062 
00064   typedef typename TSample::MeasurementVectorSizeType MeasurementVectorSizeType;
00065 
00067   typedef typename TSample::MeasurementVectorType MeasurementVectorType;
00068 
00070   typedef VariableSizeMatrix< double >               MatrixType;
00071 
00073   void SetInput( const SampleType * sample );
00074   const SampleType *  GetInput() const;
00076 
00079   typedef  SimpleDataObjectDecorator< MatrixType >  MatrixDecoratedType;
00080 
00083   typedef  SimpleDataObjectDecorator< MeasurementVectorType >  MeasurementVectorDecoratedType;
00084 
00085   typedef MeasurementVectorDecoratedType OutputType;
00086   
00088   const MatrixType GetCovarianceMatrix() const;
00089   const MatrixDecoratedType* GetCovarianceMatrixOutput() const;
00091 
00093   const MeasurementVectorType GetMean() const;
00094   const MeasurementVectorDecoratedType* GetMeanOutput() const;
00096 
00097 protected:
00098   CovarianceSampleFilter(const Self&); //purposely not implemented
00099   void operator=(const Self&); //purposely not implemented
00100 
00101   CovarianceSampleFilter();
00102   virtual ~CovarianceSampleFilter();
00103   void PrintSelf(std::ostream& os, Indent indent) const;
00104 
00106   typedef DataObject::Pointer DataObjectPointer;
00107 
00108   virtual DataObjectPointer MakeOutput(unsigned int idx);
00109 
00110   void GenerateData();
00111 
00112   MeasurementVectorSizeType GetMeasurementVectorSize() const;
00113 
00114 private:
00115 }; // end of class
00116     
00117 } // end of namespace Statistics 
00118 } // end of namespace itk 
00119 
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #include "itkCovarianceSampleFilter.txx"
00122 #endif
00123 
00124 #endif
00125 

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