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::FixedImageMaskType;
77 using typename Superclass::MeasureType;
78 using typename Superclass::DerivativeType;
80 using typename Superclass::ParametersType;
84 using typename Superclass::ScalarType;
85
89 using typename Superclass::SpatialHessianType;
91 using typename Superclass::InternalMatrixType;
92
94 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
95
99 MeasureType
100 GetValue(const ParametersType & parameters) const override;
101
104 void
105 GetDerivative(const ParametersType & parameters, DerivativeType & derivative) const override;
106
111 void
112 GetValueAndDerivative(const ParametersType & parameters,
113 MeasureType & value,
114 DerivativeType & derivative) const override;
115
116protected:
118 using typename Superclass::FixedImageIndexType;
121 using typename Superclass::FixedImagePointType;
125
128
131
134};
135
136} // end namespace itk
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "itkDisplacementMagnitudePenaltyTerm.hxx"
140#endif
141
142#endif // #ifndef itkDisplacementMagnitudePenaltyTerm_h
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
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 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo