go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxMutualInformationHistogramMetric.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 __elxMutualInformationHistogramMetric_H__
19 #define __elxMutualInformationHistogramMetric_H__
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkMutualInformationHistogramImageToImageMetric.h"
23 
24 
25 namespace elastix
26 {
27 
46 template< class TElastix >
48  public
49  itk::MutualInformationHistogramImageToImageMetric<
50  typename MetricBase< TElastix >::FixedImageType,
51  typename MetricBase< TElastix >::MovingImageType >,
52  public MetricBase< TElastix >
53 {
54 public:
55 
58  typedef itk::MutualInformationHistogramImageToImageMetric<
62  typedef itk::SmartPointer< Self > Pointer;
63  typedef itk::SmartPointer< const Self > ConstPointer;
64 
66  itkNewMacro( Self );
67 
70  itk::MutualInformationHistogramImageToImageMetric );
71 
76  elxClassNameMacro( "MutualInformationHistogram" );
77 
79  typedef typename Superclass1::TransformType TransformType;
80  typedef typename Superclass1::TransformPointer TransformPointer;
81  typedef typename Superclass1::TransformJacobianType TransformJacobianType;
82  typedef typename Superclass1::InterpolatorType InterpolatorType;
83  typedef typename Superclass1::MeasureType MeasureType;
84  typedef typename Superclass1::DerivativeType DerivativeType;
85  typedef typename Superclass1::ParametersType ParametersType;
86  typedef typename Superclass1::FixedImageType FixedImageType;
87  typedef typename Superclass1::MovingImageType MovingImageType;
88  typedef typename Superclass1::FixedImageConstPointer FixedImageConstPointer;
89  typedef typename Superclass1::MovingImageConstPointer MovingImageCosntPointer;
90  typedef typename Superclass1::ScalesType ScalesType;
91 
93  itkStaticConstMacro( MovingImageDimension, unsigned int,
94  MovingImageType::ImageDimension );
95 
104 
108  virtual void BeforeRegistration( void );
109 
113  virtual void BeforeEachResolution( void );
114 
118  virtual void Initialize( void ) throw ( itk::ExceptionObject );
119 
120 protected:
121 
125  virtual ~MutualInformationHistogramMetric() {}
126 
127 private:
128 
130  MutualInformationHistogramMetric( const Self & ); // purposely not implemented
132  void operator=( const Self & ); // purposely not implemented
133 
134 };
135 
136 } // end namespace elastix
137 
138 #ifndef ITK_MANUAL_INSTANTIATION
139 #include "elxMutualInformationHistogramMetric.hxx"
140 #endif
141 
142 #endif // end #ifndef __elxMutualInformationHistogramMetric_H__
Superclass::ElastixPointer ElastixPointer
Definition: elxMetricBase.h:86
Superclass::RegistrationType RegistrationType
Definition: elxMetricBase.h:89
Superclass::ConfigurationType ConfigurationType
Definition: elxMetricBase.h:87
itk::MutualInformationHistogramImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Superclass1::FixedImageConstPointer FixedImageConstPointer
A metric based on the itk::MutualInformationHistogramImageToImageMetric.
ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:93
Superclass1::MovingImageConstPointer MovingImageCosntPointer
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
Superclass::ElastixType ElastixType
Definition: elxMetricBase.h:82
itk::SingleValuedCostFunction ITKBaseType
ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:96
elxClassNameMacro("MutualInformationHistogram")
Superclass::RegistrationPointer RegistrationPointer
Definition: elxMetricBase.h:90
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