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

itkMutualInformationHistogramImageToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMutualInformationHistogramImageToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:55 $
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 __itkMutualInformationHistogramImageToImageMetric_h
00018 #define __itkMutualInformationHistogramImageToImageMetric_h
00019 
00020 #include "itkHistogramImageToImageMetric.h"
00021 
00022 namespace itk
00023 {
00034 template <class TFixedImage, class TMovingImage>
00035 class ITK_EXPORT MutualInformationHistogramImageToImageMetric :
00036 public HistogramImageToImageMetric<TFixedImage, TMovingImage>
00037 {
00038 public:
00040   typedef MutualInformationHistogramImageToImageMetric           Self;
00041   typedef HistogramImageToImageMetric<TFixedImage, TMovingImage> Superclass;
00042   typedef SmartPointer<Self>                                     Pointer;
00043   typedef SmartPointer<const Self>                               ConstPointer;
00044 
00046   itkNewMacro(Self);
00047 
00049   itkTypeMacro(MutualInformationHistogramImageToImageMetric,
00050     HistogramImageToImageMetric);
00051 
00053   typedef typename Superclass::RealType                 RealType;
00054   typedef typename Superclass::TransformType            TransformType;
00055   typedef typename Superclass::TransformPointer         TransformPointer;
00056   typedef typename Superclass::TransformParametersType
00057     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
00067     MovingImageConstPointer;
00068 
00069   typedef typename Superclass::HistogramType            HistogramType;
00070 #ifdef ITK_USE_REVIEW_STATISTICS
00071   typedef typename HistogramType::AbsoluteFrequencyType HistogramFrequencyType;
00072 #else
00073   typedef typename HistogramType::FrequencyType         HistogramFrequencyType;
00074 #endif
00075   typedef typename HistogramType::Iterator              HistogramIteratorType;
00076   typedef typename HistogramType::MeasurementVectorType
00077     HistogramMeasurementVectorType;
00078 
00079 protected:
00082   MutualInformationHistogramImageToImageMetric(){}
00083   virtual ~MutualInformationHistogramImageToImageMetric(){}
00085 
00087   virtual MeasureType EvaluateMeasure(HistogramType& histogram) const;
00088 
00089 private:
00090   // Purposely not implemented.
00091   MutualInformationHistogramImageToImageMetric(Self const&);
00092   void operator=(Self const&); // Purposely not implemented.
00093 };
00094 
00095 } // End namespace itk.
00096 
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkMutualInformationHistogramImageToImageMetric.txx"
00099 #endif
00100 
00101 #endif // __itkMutualInformationHistogramImageToImageMetric_h
00102 

Generated at Mon Jul 12 2010 19:14:41 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000