go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxViolaWellsMutualInformationMetric.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 __elxViolaWellsMutualInformationMetric_H__
19 #define __elxViolaWellsMutualInformationMetric_H__
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkMutualInformationImageToImageMetric.h"
23 
24 
25 namespace elastix
26 {
27 
60 template< class TElastix >
62  public
63  itk::MutualInformationImageToImageMetric<
64  typename MetricBase< TElastix >::FixedImageType,
65  typename MetricBase< TElastix >::MovingImageType >,
66  public MetricBase< TElastix >
67 {
68 public:
69 
72  typedef itk::MutualInformationImageToImageMetric<
76  typedef itk::SmartPointer< Self > Pointer;
77  typedef itk::SmartPointer< const Self > ConstPointer;
78 
80  itkNewMacro( Self );
81 
84  itk::MutualInformationImageToImageMetric );
85 
90  elxClassNameMacro( "ViolaWellsMutualInformation" );
91 
93  typedef typename Superclass1::TransformType TransformType;
94  typedef typename Superclass1::TransformPointer TransformPointer;
95  typedef typename Superclass1::TransformJacobianType TransformJacobianType;
96  typedef typename Superclass1::InterpolatorType InterpolatorType;
97  typedef typename Superclass1::MeasureType MeasureType;
98  typedef typename Superclass1::DerivativeType DerivativeType;
99  typedef typename Superclass1::ParametersType ParametersType;
100  typedef typename Superclass1::FixedImageType FixedImageType;
101  typedef typename Superclass1::MovingImageType MovingImageType;
102  typedef typename Superclass1::FixedImageConstPointer FixedImageConstPointer;
103  typedef typename Superclass1::MovingImageConstPointer MovingImageCosntPointer;
104  typedef typename Superclass1::FixedImageIndexType FixedImageIndexType;
105  typedef typename Superclass1::FixedImageIndexValueType FixedImageIndexValueType;
106  typedef typename Superclass1::MovingImageIndexType MovingImageIndexType;
107  typedef typename Superclass1::FixedImagePointType FixedImagePointType;
108  typedef typename Superclass1::MovingImagePointType MovingImagePointType;
109 
111  itkStaticConstMacro( MovingImageDimension, unsigned int,
112  MovingImageType::ImageDimension );
113 
122 
128  virtual void BeforeEachResolution( void );
129 
133  virtual void Initialize( void ) throw ( itk::ExceptionObject );
134 
135 protected:
136 
140  virtual ~ViolaWellsMutualInformationMetric() {}
141 
142 private:
143 
145  ViolaWellsMutualInformationMetric( const Self & ); // purposely not implemented
147  void operator=( const Self & ); // purposely not implemented
148 
149 };
150 
151 } // end namespace elastix
152 
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "elxViolaWellsMutualInformationMetric.hxx"
155 #endif
156 
157 #endif // end #ifndef __elxViolaWellsMutualInformationMetric_H__
Superclass::ElastixPointer ElastixPointer
Definition: elxMetricBase.h:86
Superclass::RegistrationType RegistrationType
Definition: elxMetricBase.h:89
Superclass::ConfigurationType ConfigurationType
Definition: elxMetricBase.h:87
ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:93
elxClassNameMacro("ViolaWellsMutualInformation")
itk::MutualInformationImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Superclass::ElastixType ElastixType
Definition: elxMetricBase.h:82
Superclass1::FixedImageIndexValueType FixedImageIndexValueType
itk::SingleValuedCostFunction ITKBaseType
ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:96
Superclass::RegistrationPointer RegistrationPointer
Definition: elxMetricBase.h:90
A metric based on the itk::MutualInformationImageToImageMetric.
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
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