go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkSumOfPairwiseCorrelationCoefficientsMetric.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 __itkSumOfPairwiseCorrelationCoefficientsMetric_H__
19#define __itkSumOfPairwiseCorrelationCoefficientsMetric_H__
20
22
23#include "itkSmoothingRecursiveGaussianImageFilter.h"
25#include "itkNearestNeighborInterpolateImageFunction.h"
26#include "itkExtractImageFilter.h"
27
28using namespace std;
29
30namespace itk
31{
32template< class TFixedImage, class TMovingImage >
34 public AdvancedImageToImageMetric< TFixedImage, TMovingImage >
35{
36public:
37
41 TFixedImage, TMovingImage > Superclass;
43 typedef SmartPointer< const Self > ConstPointer;
44
46 typedef typename FixedImageRegionType::SizeType FixedImageSizeType;
47
49 itkNewMacro( Self );
50
53
55 itkSetMacro( NumAdditionalSamplesFixed, unsigned int );
56 itkSetMacro( ReducedDimensionIndex, unsigned int );
57 itkSetMacro( SubtractMean, bool );
58 itkSetMacro( GridSize, FixedImageSizeType );
59 itkSetMacro( TransformIsStackTransform, bool );
60
62 typedef typename
95 typedef typename
99 typedef typename
101 typedef typename
103 typedef typename
105
107 itkStaticConstMacro( FixedImageDimension, unsigned int,
108 FixedImageType::ImageDimension );
109
111 itkStaticConstMacro( MovingImageDimension, unsigned int,
112 MovingImageType::ImageDimension );
113
115 MeasureType GetValue( const TransformParametersType & parameters ) const override;
116
118 void GetDerivative( const TransformParametersType & parameters,
119 DerivativeType & derivative ) const override;
120
123 MeasureType & Value, DerivativeType & Derivative ) const override;
124
129 void Initialize( void ) override;
130
131protected:
132
135 void PrintSelf( std::ostream & os, Indent indent ) const override;
136
144 typedef typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
152
157 const TransformJacobianType & jacobian,
158 const MovingImageDerivativeType & movingImageDerivative,
159 DerivativeType & imageJacobian ) const override;
160
161private:
162
163 SumOfPairwiseCorrelationCoefficientsMetric( const Self & ); // purposely not implemented
164 void operator=( const Self & ); // purposely not implemented
165
167 void SampleRandom( const int n, const int m, std::vector< int > & numbers ) const;
168
172
175
178
181
182};
183
184} // end namespace itk
185
186#ifndef ITK_MANUAL_INSTANTIATION
187#include "itkSumOfPairwiseCorrelationCoefficientsMetric.hxx"
188#endif
189
190#endif // end #ifndef __itkSumOfPairwiseCorrelationCoefficientsMetric_H__
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics.
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::FixedImageMaskPointer FixedImageMaskPointer
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::TransformJacobianType TransformJacobianType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
Superclass::GradientImagePointer GradientImagePointer
Superclass::TransformPointer TransformPointer
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
ImageSamplerBase< FixedImageType > ImageSamplerType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageMaskPointer MovingImageMaskPointer
TransformType::InputPointType FixedImagePointType
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::GradientPixelType GradientPixelType
MovingImageType::IndexType MovingImageIndexType
MovingImageType::RegionType MovingImageRegionType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
FixedImageIndexType::IndexValueType FixedImageIndexValueType
Superclass::MovingImagePixelType MovingImagePixelType
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::GradientImageType GradientImageType
Superclass::InterpolatorType InterpolatorType
TransformType::OutputPointType MovingImagePointType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Superclass::FixedImageRegionType FixedImageRegionType
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const override
itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension > FixedImageContinuousIndexType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
void GetDerivative(const TransformParametersType &parameters, DerivativeType &derivative) const override
MeasureType GetValue(const TransformParametersType &parameters) const override
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
void SampleRandom(const int n, const int m, std::vector< int > &numbers) const


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo