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

itkWeightedCovarianceSampleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkWeightedCovarianceSampleFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:44:00 $
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 __itkWeightedCovarianceSampleFilter_h
00019 #define __itkWeightedCovarianceSampleFilter_h
00020 
00021 #include "itkFunctionBase.h"
00022 #include "itkCovarianceSampleFilter.h"
00023 #include "itkDataObjectDecorator.h"
00024 
00025 namespace itk { 
00026 namespace Statistics {
00027   
00040 template< class TSample >
00041 class ITK_EXPORT WeightedCovarianceSampleFilter :
00042     public CovarianceSampleFilter< TSample >
00043 {
00044 public:
00046   typedef WeightedCovarianceSampleFilter        Self;
00047   typedef CovarianceSampleFilter< TSample >     Superclass;
00048   typedef SmartPointer<Self>                    Pointer;
00049   typedef SmartPointer<const Self>              ConstPointer;
00050 
00052   itkTypeMacro(WeightedCovarianceSampleFilter, CovarianceSampleFilter);
00053   itkNewMacro(Self);
00055 
00057   itkSuperclassTraitMacro( SampleType )
00058   itkSuperclassTraitMacro( MeasurementVectorType )
00059   itkSuperclassTraitMacro( MeasurementVectorSizeType )
00060   itkSuperclassTraitMacro( MeasurementVectorDecoratedType )
00061   itkSuperclassTraitMacro( OutputType )
00062 
00064   typedef VariableSizeMatrix< double >               MatrixType;
00065 
00067   typedef FunctionBase< MeasurementVectorType, double > WeightingFunctionType;
00068 
00071   typedef  SimpleDataObjectDecorator< MatrixType >  MatrixDecoratedType;
00072 
00074   typedef Array< double > WeightArrayType;
00075 
00077   typedef SimpleDataObjectDecorator< WeightArrayType > InputWeightArrayObjectType;
00078 
00080   itkSetDecoratedInputMacro( Weights, WeightArrayType, 1 );
00081 
00083   typedef DataObjectDecorator< WeightingFunctionType > InputWeightingFunctionObjectType;
00084 
00086   itkSetDecoratedObjectInputMacro( WeightingFunction, WeightingFunctionType, 2 );
00087 
00088 protected:
00089   WeightedCovarianceSampleFilter(const Self&); //purposely not implemented
00090   void operator=(const Self&); //purposely not implemented
00091 
00092   WeightedCovarianceSampleFilter();
00093   virtual ~WeightedCovarianceSampleFilter();
00094   void PrintSelf(std::ostream& os, Indent indent) const;
00095 
00096   void GenerateData();
00097 
00099   void ComputeCovarianceMatrixWithWeightingFunction();
00100 
00102   void ComputeCovarianceMatrixWithWeights();
00103 
00104 private:
00105 }; // end of class
00106     
00107 } // end of namespace Statistics 
00108 } // end of namespace itk 
00109 
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkWeightedCovarianceSampleFilter.txx"
00112 #endif
00113 
00114 #endif
00115 

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