go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedMattesMutualInformationMetric.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 #ifndef __elxAdvancedMattesMutualInformationMetric_H__
19 #define __elxAdvancedMattesMutualInformationMetric_H__
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
23 
24 
25 namespace elastix
26 {
27 
100 template< class TElastix >
102  public
104  typename MetricBase< TElastix >::FixedImageType,
105  typename MetricBase< TElastix >::MovingImageType >,
106  public MetricBase< TElastix >
107 {
108 public:
109 
116  typedef itk::SmartPointer< Self > Pointer;
117  typedef itk::SmartPointer< const Self > ConstPointer;
118 
120  itkNewMacro( Self );
121 
125 
130  elxClassNameMacro( "AdvancedMattesMutualInformation" );
131 
133  typedef typename
149  typedef typename Superclass1::RealType RealType;
167  typedef typename
171  typedef typename
173  typedef typename
175  typedef typename
177 
179  itkStaticConstMacro( FixedImageDimension, unsigned int,
180  FixedImageType::ImageDimension );
181 
183  itkStaticConstMacro( MovingImageDimension, unsigned int,
184  MovingImageType::ImageDimension );
185 
194 
200  virtual void BeforeEachResolution( void );
201 
205  virtual void AfterEachIteration( void );
206 
209  virtual void Initialize( void ) throw ( itk::ExceptionObject );
210 
212  itkSetMacro( Param_c, double );
213  itkGetConstMacro( Param_c, double );
214 
216  itkSetMacro( Param_gamma, double );
217  itkGetConstMacro( Param_gamma, double );
218 
220  itkSetMacro( CurrentIteration, unsigned int );
221  itkGetConstMacro( CurrentIteration, unsigned int );
222 
223 protected:
224 
227 
229  virtual ~AdvancedMattesMutualInformationMetric() {}
230 
231  unsigned long m_CurrentIteration;
232 
234  double Compute_c( unsigned long k ) const;
235 
236 private:
237 
239  AdvancedMattesMutualInformationMetric( const Self & ); // purposely not implemented
241  void operator=( const Self & ); // purposely not implemented
242 
243  double m_Param_c;
245 
246 };
247 
248 } // end namespace elastix
249 
250 #ifndef ITK_MANUAL_INSTANTIATION
251 #include "elxAdvancedMattesMutualInformationMetric.hxx"
252 #endif
253 
254 #endif // end #ifndef __elxAdvancedMattesMutualInformationMetric_H__
Superclass::ElastixPointer ElastixPointer
Definition: elxMetricBase.h:86
Superclass::RegistrationType RegistrationType
Definition: elxMetricBase.h:89
Superclass::ConfigurationType ConfigurationType
Definition: elxMetricBase.h:87
double Compute_c(unsigned long k) const
Superclass1::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:93
A metric based on the itk::ParzenWindowMutualInformationImageToImageMetric.
Superclass1::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass1::CoordinateRepresentationType CoordinateRepresentationType
elxClassNameMacro("AdvancedMattesMutualInformation")
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
Superclass::ElastixType ElastixType
Definition: elxMetricBase.h:82
itk::SingleValuedCostFunction ITKBaseType
ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:96
Superclass::RegistrationPointer RegistrationPointer
Definition: elxMetricBase.h:90
itk::ParzenWindowMutualInformationImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Computes the mutual information between two images to be registered using the method of Mattes et al...
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxMetricBase.h:88
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73


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