ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkMutualInformationHistogramImageToImageMetric_h 00019 #define __itkMutualInformationHistogramImageToImageMetric_h 00020 00021 #include "itkHistogramImageToImageMetric.h" 00022 00023 namespace itk 00024 { 00037 template< class TFixedImage, class TMovingImage > 00038 class ITK_EXPORT MutualInformationHistogramImageToImageMetric: 00039 public HistogramImageToImageMetric< TFixedImage, TMovingImage > 00040 { 00041 public: 00043 typedef MutualInformationHistogramImageToImageMetric Self; 00044 typedef HistogramImageToImageMetric< TFixedImage, TMovingImage > Superclass; 00045 typedef SmartPointer< Self > Pointer; 00046 typedef SmartPointer< const Self > ConstPointer; 00047 00049 itkNewMacro(Self); 00050 00052 itkTypeMacro(MutualInformationHistogramImageToImageMetric, 00053 HistogramImageToImageMetric); 00054 00056 typedef typename Superclass::RealType RealType; 00057 typedef typename Superclass::TransformType TransformType; 00058 typedef typename Superclass::TransformPointer TransformPointer; 00059 typedef typename Superclass::TransformParametersType TransformParametersType; 00060 typedef typename Superclass::TransformJacobianType TransformJacobianType; 00061 typedef typename Superclass::GradientPixelType GradientPixelType; 00062 00063 typedef typename Superclass::MeasureType MeasureType; 00064 typedef typename Superclass::DerivativeType DerivativeType; 00065 typedef typename Superclass::FixedImageType FixedImageType; 00066 typedef typename Superclass::MovingImageType MovingImageType; 00067 typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer; 00068 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer; 00069 00070 typedef typename Superclass::HistogramType HistogramType; 00071 typedef typename HistogramType::AbsoluteFrequencyType HistogramFrequencyType; 00072 typedef typename HistogramType::Iterator HistogramIteratorType; 00073 typedef typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType; 00074 protected: 00077 MutualInformationHistogramImageToImageMetric(){} 00078 virtual ~MutualInformationHistogramImageToImageMetric(){} 00080 00082 virtual MeasureType EvaluateMeasure(HistogramType & histogram) const; 00083 00084 private: 00085 // Purposely not implemented. 00086 MutualInformationHistogramImageToImageMetric(Self const &); 00087 void operator=(Self const &); // Purposely not implemented. 00088 }; 00089 } // End namespace itk. 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkMutualInformationHistogramImageToImageMetric.hxx" 00093 #endif 00094 00095 #endif // __itkMutualInformationHistogramImageToImageMetric_h 00096