00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkNormalizedMutualInformationHistogramImageToImageMetric.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:36 $ 00007 Version: $Revision: 1.3 $ 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 { 00035 template <class TFixedImage, class TMovingImage> 00036 class ITK_EXPORT NormalizedMutualInformationHistogramImageToImageMetric : 00037 public HistogramImageToImageMetric<TFixedImage, TMovingImage> 00038 { 00039 public: 00041 typedef NormalizedMutualInformationHistogramImageToImageMetric 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(NormalizedMutualInformationHistogramImageToImageMetric, 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 00058 TransformParametersType; 00059 typedef typename Superclass::TransformJacobianType TransformJacobianType; 00060 typedef typename Superclass::GradientPixelType GradientPixelType; 00061 00062 typedef typename Superclass::MeasureType MeasureType; 00063 typedef typename Superclass::DerivativeType DerivativeType; 00064 typedef typename Superclass::FixedImageType FixedImageType; 00065 typedef typename Superclass::MovingImageType MovingImageType; 00066 typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer; 00067 typedef typename Superclass::MovingImageConstPointer 00068 MovingImageConstPointer; 00069 00070 typedef typename Superclass::HistogramType HistogramType; 00071 typedef typename HistogramType::FrequencyType HistogramFrequencyType; 00072 typedef typename HistogramType::Iterator HistogramIteratorType; 00073 typedef typename HistogramType::MeasurementVectorType 00074 HistogramMeasurementVectorType; 00075 00076 protected: 00079 NormalizedMutualInformationHistogramImageToImageMetric(){} 00080 virtual ~NormalizedMutualInformationHistogramImageToImageMetric(){} 00081 00083 virtual MeasureType EvaluateMeasure(HistogramType& histogram) const; 00084 00085 private: 00086 // Purposely not implemented. 00087 NormalizedMutualInformationHistogramImageToImageMetric(Self const&); 00088 void operator=(Self const&); // Purposely not implemented. 00089 }; 00090 00091 } // End namespace itk. 00092 00093 #ifndef ITK_MANUAL_INSTANTIATION 00094 #include "itkNormalizedMutualInformationHistogramImageToImageMetric.txx" 00095 #endif 00096 00097 #endif // __itkNormalizedMutualInformationHistogramImageToImageMetric_h