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

itkCorrelationCoefficientHistogramImageToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCorrelationCoefficientHistogramImageToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:54 $
00007   Version:   $Revision: 1.5 $
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 #ifndef __itkCorrelationCoefficientHistogramImageToImageMetric_h
00018 #define __itkCorrelationCoefficientHistogramImageToImageMetric_h
00019 
00020 #include "itkHistogramImageToImageMetric.h"
00021 
00022 namespace itk
00023 {
00035 template <class TFixedImage, class TMovingImage>
00036 class ITK_EXPORT CorrelationCoefficientHistogramImageToImageMetric :
00037 public HistogramImageToImageMetric<TFixedImage, TMovingImage>
00038 {
00039 public:
00041   typedef CorrelationCoefficientHistogramImageToImageMetric      Self;
00042   typedef HistogramImageToImageMetric<TFixedImage, TMovingImage> Superclass;
00043   typedef SmartPointer<Self>                                     Pointer;
00044   typedef SmartPointer<const Self>                               ConstPointer;
00045 
00047   itkNewMacro(Self);
00048 
00050   itkTypeMacro(CorrelationCoefficientHistogramImageToImageMetric,
00051     HistogramImageToImageMetric);
00052 
00054   typedef typename Superclass::RealType                RealType;
00055   typedef typename Superclass::TransformType           TransformType;
00056   typedef typename Superclass::TransformPointer        TransformPointer;
00057   typedef typename Superclass::TransformParametersType TransformParametersType;
00058   typedef typename Superclass::TransformJacobianType   TransformJacobianType;
00059   typedef typename Superclass::GradientPixelType       GradientPixelType;
00060 
00061   typedef typename Superclass::MeasureType             MeasureType;
00062   typedef typename Superclass::DerivativeType          DerivativeType;
00063   typedef typename Superclass::FixedImageType          FixedImageType;
00064   typedef typename Superclass::MovingImageType         MovingImageType;
00065   typedef typename Superclass::FixedImageConstPointer  FixedImageConstPointer;
00066   typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00067 
00068   typedef typename Superclass::HistogramType    HistogramType;
00069 
00070 #ifdef ITK_USE_REVIEW_STATISTICS
00071   typedef typename HistogramType::AbsoluteFrequencyType HistogramAbsoluteFrequencyType;
00072 #else
00073   typedef typename HistogramType::FrequencyType         HistogramAbsoluteFrequencyType;
00074 #endif
00075   typedef HistogramAbsoluteFrequencyType                HistogramFrequencyType;
00076 
00077   typedef typename HistogramType::Iterator      HistogramIteratorType;
00078   typedef typename HistogramType::MeasurementVectorType
00079                                                 HistogramMeasurementVectorType;
00080 
00081 protected:
00084   CorrelationCoefficientHistogramImageToImageMetric(){}
00085   virtual ~CorrelationCoefficientHistogramImageToImageMetric(){}
00087 
00089   virtual MeasureType EvaluateMeasure(HistogramType& histogram) const;
00090 
00091 private:
00093   MeasureType MeanX(HistogramType& histogram) const;
00094 
00096   MeasureType MeanY(HistogramType& histogram) const;
00097 
00099   MeasureType VarianceX(HistogramType& histogram) const;
00100 
00102   MeasureType VarianceY(HistogramType& histogram) const;
00103 
00105   MeasureType Covariance(HistogramType& histogram) const;
00106 
00107   // Purposely not implemented.
00108   CorrelationCoefficientHistogramImageToImageMetric(Self const&); 
00109   void operator=(Self const&); // Purposely not implemented.
00110 };
00111 
00112 } // End namespace itk.
00113 
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkCorrelationCoefficientHistogramImageToImageMetric.txx"
00116 #endif
00117 
00118 #endif // __itkCorrelationCoefficientHistogramImageToImageMetric_h
00119 

Generated at Thu May 28 09:44:36 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000