go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkParzenWindowNormalizedMutualInformationImageToImageMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __itkParzenWindowNormalizedMutualInformationImageToImageMetric_H__
20 #define __itkParzenWindowNormalizedMutualInformationImageToImageMetric_H__
21 
23 
24 namespace itk
25 {
26 
71 template< class TFixedImage, class TMovingImage >
73  public ParzenWindowHistogramImageToImageMetric< TFixedImage, TMovingImage >
74 {
75 public:
76 
80  TFixedImage, TMovingImage > Superclass;
82  typedef SmartPointer< const Self > ConstPointer;
83 
85  itkNewMacro( Self );
86 
88  itkTypeMacro(
91 
93  typedef typename
109  typedef typename Superclass::RealType RealType;
127  typedef typename
131  typedef typename
133  typedef typename
135  typedef typename
137 
139  itkStaticConstMacro( FixedImageDimension, unsigned int,
140  FixedImageType::ImageDimension );
141 
143  itkStaticConstMacro( MovingImageDimension, unsigned int,
144  MovingImageType::ImageDimension );
145 
147  MeasureType GetValue( const ParametersType & parameters ) const;
148 
150  void GetValueAndDerivative( const ParametersType & parameters,
151  MeasureType & Value, DerivativeType & Derivative ) const;
152 
153 protected:
154 
157 
160 
162  void PrintSelf( std::ostream & os, Indent indent ) const;
163 
190 
193  virtual void ComputeLogMarginalPDF( MarginalPDFType & pdf ) const;
194 
201  virtual MeasureType ComputeNormalizedMutualInformation( MeasureType & jointEntropy ) const;
202 
203 private:
204 
206  ParzenWindowNormalizedMutualInformationImageToImageMetric( const Self & ); // purposely not implemented
208  void operator=( const Self & ); // purposely not implemented
209 
210 };
211 
212 } // end namespace itk
213 
214 #ifndef ITK_MANUAL_INSTANTIATION
215 #include "itkParzenWindowNormalizedMutualInformationImageToImageMetric.hxx"
216 #endif
217 
218 #endif // end #ifndef __itkParzenWindowNormalizedMutualInformationImageToImageMetric_H__
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
virtual MeasureType ComputeNormalizedMutualInformation(MeasureType &jointEntropy) const
Superclass::CoordinateRepresentationType CoordinateRepresentationType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
A base class for image metrics based on a joint histogram computed using Parzen Windowing.
virtual void ComputeLogMarginalPDF(MarginalPDFType &pdf) const
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
Computes the normalized mutual information between two images to be registered using a method based o...
MeasureType GetValue(const ParametersType &parameters) const


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo