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

itkNormalizedMutualInformationHistogramImageToImageMetric.h

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

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