ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkNormalizedMutualInformationHistogramImageToImageMetric.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkNormalizedMutualInformationHistogramImageToImageMetric_h
00019 #define __itkNormalizedMutualInformationHistogramImageToImageMetric_h
00020 
00021 #include "itkHistogramImageToImageMetric.h"
00022 
00023 namespace itk
00024 {
00051 template< class TFixedImage, class TMovingImage >
00052 class ITK_EXPORT NormalizedMutualInformationHistogramImageToImageMetric:
00053   public HistogramImageToImageMetric< TFixedImage, TMovingImage >
00054 {
00055 public:
00057   typedef NormalizedMutualInformationHistogramImageToImageMetric   Self;
00058   typedef HistogramImageToImageMetric< TFixedImage, TMovingImage > Superclass;
00059   typedef SmartPointer< Self >                                     Pointer;
00060   typedef SmartPointer< const Self >                               ConstPointer;
00061 
00063   itkNewMacro(Self);
00064 
00066   itkTypeMacro(NormalizedMutualInformationHistogramImageToImageMetric,
00067                HistogramImageToImageMetric);
00068 
00070   typedef typename Superclass::RealType                RealType;
00071   typedef typename Superclass::TransformType           TransformType;
00072   typedef typename Superclass::TransformPointer        TransformPointer;
00073   typedef typename Superclass::TransformParametersType TransformParametersType;
00074   typedef typename Superclass::TransformJacobianType   TransformJacobianType;
00075   typedef typename Superclass::GradientPixelType       GradientPixelType;
00076 
00077   typedef typename Superclass::MeasureType             MeasureType;
00078   typedef typename Superclass::DerivativeType          DerivativeType;
00079   typedef typename Superclass::FixedImageType          FixedImageType;
00080   typedef typename Superclass::MovingImageType         MovingImageType;
00081   typedef typename Superclass::FixedImageConstPointer  FixedImageConstPointer;
00082   typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00083 
00084   typedef typename Superclass::HistogramType            HistogramType;
00085   typedef typename HistogramType::AbsoluteFrequencyType HistogramFrequencyType;
00086   typedef typename HistogramType::Iterator              HistogramIteratorType;
00087   typedef typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType;
00088 protected:
00091   NormalizedMutualInformationHistogramImageToImageMetric(){}
00092   virtual ~NormalizedMutualInformationHistogramImageToImageMetric(){}
00094 
00096   virtual MeasureType EvaluateMeasure(HistogramType & histogram) const;
00097 
00098 private:
00099   // Purposely not implemented.
00100   NormalizedMutualInformationHistogramImageToImageMetric(Self const &);
00101   void operator=(Self const &); // Purposely not implemented.
00102 };
00103 } // End namespace itk.
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkNormalizedMutualInformationHistogramImageToImageMetric.hxx"
00107 #endif
00108 
00109 #endif // __itkNormalizedMutualInformationHistogramImageToImageMetric_h
00110