go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkDisplacementMagnitudePenaltyTerm.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 itkDisplacementMagnitudePenaltyTerm_h
19#define itkDisplacementMagnitudePenaltyTerm_h
20
22
23namespace itk
24{
25
33template <class TFixedImage, class TScalarType>
34class ITK_TEMPLATE_EXPORT DisplacementMagnitudePenaltyTerm : public TransformPenaltyTerm<TFixedImage, TScalarType>
35{
36public:
38
42 using Pointer = SmartPointer<Self>;
43 using ConstPointer = SmartPointer<const Self>;
44
46 itkNewMacro(Self);
47
50
52 using typename Superclass::CoordinateRepresentationType;
53 using typename Superclass::MovingImageType;
54 using typename Superclass::MovingImagePixelType;
55 using typename Superclass::MovingImagePointer;
56 using typename Superclass::MovingImageConstPointer;
57 using typename Superclass::FixedImageType;
58 using typename Superclass::FixedImagePointer;
59 using typename Superclass::FixedImageConstPointer;
60 using typename Superclass::FixedImageRegionType;
61 using typename Superclass::TransformType;
62 using typename Superclass::TransformPointer;
63 using typename Superclass::InputPointType;
64 using typename Superclass::OutputPointType;
65 using typename Superclass::TransformParametersType;
66 using typename Superclass::TransformJacobianType;
67 using typename Superclass::InterpolatorType;
68 using typename Superclass::InterpolatorPointer;
69 using typename Superclass::RealType;
70 using typename Superclass::GradientPixelType;
71 using typename Superclass::GradientImageType;
72 using typename Superclass::GradientImagePointer;
73 using typename Superclass::GradientImageFilterType;
74 using typename Superclass::GradientImageFilterPointer;
75 using typename Superclass::FixedImageMaskType;
76 using typename Superclass::FixedImageMaskPointer;
77 using typename Superclass::MovingImageMaskType;
78 using typename Superclass::MovingImageMaskPointer;
79 using typename Superclass::MeasureType;
80 using typename Superclass::DerivativeType;
82 using typename Superclass::ParametersType;
86 using typename Superclass::ScalarType;
87
91 using typename Superclass::SpatialHessianType;
93 using typename Superclass::InternalMatrixType;
94
96 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
97
101 MeasureType
102 GetValue(const ParametersType & parameters) const override;
103
106 void
107 GetDerivative(const ParametersType & parameters, DerivativeType & derivative) const override;
108
113 void
114 GetValueAndDerivative(const ParametersType & parameters,
115 MeasureType & value,
116 DerivativeType & derivative) const override;
117
118protected:
120 using typename Superclass::FixedImageIndexType;
123 using typename Superclass::FixedImagePointType;
127
130
133
136};
137
138} // end namespace itk
139
140#ifndef ITK_MANUAL_INSTANTIATION
141# include "itkDisplacementMagnitudePenaltyTerm.hxx"
142#endif
143
144#endif // #ifndef itkDisplacementMagnitudePenaltyTerm_h
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
MeasureType GetValue(const ParametersType &parameters) const override
ITK_DISALLOW_COPY_AND_MOVE(DisplacementMagnitudePenaltyTerm)
void GetDerivative(const ParametersType &parameters, DerivativeType &derivative) const override
~DisplacementMagnitudePenaltyTerm() override=default
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const override
A cost function that calculates a penalty term on a transformation.
typename TransformType::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
typename Superclass::AdvancedTransformType TransformType
typename TransformType::SpatialHessianType SpatialHessianType
typename TransformType::SpatialJacobianType SpatialJacobianType
typename TransformType::InternalMatrixType InternalMatrixType
typename TransformType::JacobianOfSpatialHessianType JacobianOfSpatialHessianType


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo