go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxVarianceOverLastDimensionMetric.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 __elxVarianceOverLastDimensionMetric_H__
19 #define __elxVarianceOverLastDimensionMetric_H__
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
24 #include "../Transforms/StackTransform/itkStackTransform.h"
25 
26 
27 namespace elastix
28 {
29 
67 template< class TElastix >
69  public
71  typename MetricBase< TElastix >::FixedImageType,
72  typename MetricBase< TElastix >::MovingImageType >,
73  public MetricBase< TElastix >
74 {
75 public:
76 
83  typedef itk::SmartPointer< Self > Pointer;
84  typedef itk::SmartPointer< const Self > ConstPointer;
85 
87  itkNewMacro( Self );
88 
91 
96  elxClassNameMacro( "VarianceOverLastDimensionMetric" );
97 
99  typedef typename
117  typedef typename Superclass1::RealType RealType;
135  typedef typename
139  typedef typename
141  typedef typename
143  typedef typename
145 
147  itkStaticConstMacro( FixedImageDimension, unsigned int,
148  FixedImageType::ImageDimension );
149 
151  itkStaticConstMacro( MovingImageDimension, unsigned int,
152  MovingImageType::ImageDimension );
153 
162 
165  ScalarType, FixedImageDimension > BSplineTransformBaseType;
167  ScalarType, FixedImageDimension > CombinationTransformType;
168  typedef itk::StackTransform<
169  ScalarType, FixedImageDimension, MovingImageDimension > StackTransformType;
172 
176  virtual void Initialize( void ) throw ( itk::ExceptionObject );
177 
182  virtual void BeforeRegistration( void );
183 
189  virtual void BeforeEachResolution( void );
190 
191 protected:
192 
197 
198 private:
199 
201  VarianceOverLastDimensionMetric( const Self & ); // purposely not implemented
203  void operator=( const Self & ); // purposely not implemented
204 
205 };
206 
207 } // end namespace elastix
208 
209 #ifndef ITK_MANUAL_INSTANTIATION
210 #include "elxVarianceOverLastDimensionMetric.hxx"
211 #endif
212 
213 #endif // end #ifndef __elxVarianceOverLastDimensionMetric_H__
Superclass1::MovingImageConstPointer MovingImageConstPointer
This class combines two transforms: an 'initial transform' with a 'current transform'.
Superclass::ElastixPointer ElastixPointer
Definition: elxMetricBase.h:86
Superclass::RegistrationType RegistrationType
Definition: elxMetricBase.h:89
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass1::GradientImageFilterPointer GradientImageFilterPointer
Superclass1::TransformParametersType TransformParametersType
Superclass::ConfigurationType ConfigurationType
Definition: elxMetricBase.h:87
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass1::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass1::CoordinateRepresentationType CoordinateRepresentationType
ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:93
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
Implements stack of transforms: one for every last dimension index.
Superclass1::MovingImageMaskPointer MovingImageMaskPointer
Compute the sum of variances over the slowest varying dimension in the moving image.
Superclass1::GradientImageFilterType GradientImageFilterType
Superclass1::FixedImageLimiterOutputType FixedImageLimiterOutputType
itk::VarianceOverLastDimensionImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Superclass1::ImageSampleContainerType ImageSampleContainerType
Superclass1::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass1::MovingImageLimiterType MovingImageLimiterType
itk::AdvancedBSplineDeformableTransformBase< ScalarType, FixedImageDimension-1 > ReducedDimensionBSplineTransformBaseType
itk::AdvancedBSplineDeformableTransformBase< ScalarType, FixedImageDimension > BSplineTransformBaseType
Superclass1::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass1::FixedImageConstPointer FixedImageConstPointer
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::ElastixType ElastixType
Definition: elxMetricBase.h:82
itk::SingleValuedCostFunction ITKBaseType
elxClassNameMacro("VarianceOverLastDimensionMetric")
ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:96
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxMetricBase.h:90
itk::StackTransform< ScalarType, FixedImageDimension, MovingImageDimension > StackTransformType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Base class for deformable transform using a B-spline representation.
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxMetricBase.h:88
Compute the sum of variances over the slowest varying dimension in the moving image.
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)


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