go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
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
32
33template <typename TFixedImage, typename 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::TransformJacobianType;
66 using typename Superclass::InterpolatorType;
67 using typename Superclass::InterpolatorPointer;
68 using typename Superclass::RealType;
69 using typename Superclass::GradientPixelType;
70 using typename Superclass::GradientImageType;
71 using typename Superclass::GradientImagePointer;
72 using typename Superclass::FixedImageMaskType;
76 using typename Superclass::MeasureType;
77 using typename Superclass::DerivativeType;
79 using typename Superclass::ParametersType;
83 using typename Superclass::ScalarType;
84
88 using typename Superclass::SpatialHessianType;
90 using typename Superclass::InternalMatrixType;
91
93 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
94
98 MeasureType
99 GetValue(const ParametersType & parameters) const override;
100
103 void
104 GetDerivative(const ParametersType & parameters, DerivativeType & derivative) const override;
105
110 void
111 GetValueAndDerivative(const ParametersType & parameters,
112 MeasureType & value,
113 DerivativeType & derivative) const override;
114
115protected:
117 using typename Superclass::FixedImageIndexType;
120 using typename Superclass::FixedImagePointType;
124
127
130
133};
134
135} // end namespace itk
136
137#ifndef ITK_MANUAL_INSTANTIATION
138# include "itkDisplacementMagnitudePenaltyTerm.hxx"
139#endif
140
141#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
itkOverrideGetNameOfClassMacro(DisplacementMagnitudePenaltyTerm)
TransformPenaltyTerm< typename MetricBase< TElastix >::FixedImageType, double > Superclass
~DisplacementMagnitudePenaltyTerm() override=default
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const override
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 1774142652 for elastix by doxygen 1.15.0 elastix logo