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
itkTransformBendingEnergyPenaltyTerm.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 itkTransformBendingEnergyPenaltyTerm_h
19#define itkTransformBendingEnergyPenaltyTerm_h
20
22#include "itkImageGridSampler.h"
23
24namespace itk
25{
26
48
49template <typename TFixedImage, typename TScalarType>
50class ITK_TEMPLATE_EXPORT TransformBendingEnergyPenaltyTerm : public TransformPenaltyTerm<TFixedImage, TScalarType>
51{
52public:
54
58 using Pointer = SmartPointer<Self>;
59 using ConstPointer = SmartPointer<const Self>;
60
62 itkNewMacro(Self);
63
66
68 using typename Superclass::CoordinateRepresentationType;
69 using typename Superclass::MovingImageType;
70 using typename Superclass::MovingImagePixelType;
71 using typename Superclass::MovingImagePointer;
72 using typename Superclass::MovingImageConstPointer;
73 using typename Superclass::FixedImageType;
74 using typename Superclass::FixedImagePointer;
75 using typename Superclass::FixedImageConstPointer;
76 using typename Superclass::FixedImageRegionType;
77 using typename Superclass::TransformType;
78 using typename Superclass::TransformPointer;
79 using typename Superclass::InputPointType;
80 using typename Superclass::OutputPointType;
81 using typename Superclass::TransformJacobianType;
83 using typename Superclass::InterpolatorType;
84 using typename Superclass::InterpolatorPointer;
85 using typename Superclass::RealType;
86 using typename Superclass::GradientPixelType;
87 using typename Superclass::GradientImageType;
88 using typename Superclass::GradientImagePointer;
89 using typename Superclass::FixedImageMaskType;
93 using typename Superclass::MeasureType;
94 using typename Superclass::DerivativeType;
96 using typename Superclass::ParametersType;
100 using typename Superclass::ScalarType;
101 using typename Superclass::ThreadInfoType;
102
111
113 using typename Superclass::SpatialJacobianType;
115 using typename Superclass::SpatialHessianType;
117 using typename Superclass::InternalMatrixType;
118
120 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
121
123 MeasureType
124 GetValue(const ParametersType & parameters) const override;
125
127 void
128 GetDerivative(const ParametersType & parameters, DerivativeType & derivative) const override;
129
131 virtual void
132 GetValueAndDerivativeSingleThreaded(const ParametersType & parameters,
133 MeasureType & value,
134 DerivativeType & derivative) const;
135
136 void
137 GetValueAndDerivative(const ParametersType & parameters,
138 MeasureType & value,
139 DerivativeType & derivative) const override;
140
142 void
143 ThreadedGetValueAndDerivative(ThreadIdType threadID) const override;
144
146 void
147 AfterThreadedGetValueAndDerivative(MeasureType & value, DerivativeType & derivative) const override;
148
149protected:
151 using typename Superclass::FixedImageIndexType;
154 using typename Superclass::FixedImagePointType;
158
161
164};
165
166} // end namespace itk
167
168#ifndef ITK_MANUAL_INSTANTIATION
169# include "itkTransformBendingEnergyPenaltyTerm.hxx"
170#endif
171
172#endif // #ifndef itkTransformBendingEnergyPenaltyTerm_h
typename BSplineOrder1TransformType::Pointer BSplineOrder1TransformPointer
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > BSplineOrder3TransformType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
typename BSplineOrder3TransformType::Pointer BSplineOrder3TransformPointer
typename BSplineOrder2TransformType::Pointer BSplineOrder2TransformPointer
AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > BSplineOrder1TransformType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
typename AdvancedTransformType::NumberOfParametersType NumberOfParametersType
AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > BSplineOrder2TransformType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
virtual void GetValueAndDerivativeSingleThreaded(const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const
void GetDerivative(const ParametersType &parameters, DerivativeType &derivative) const override
ITK_DISALLOW_COPY_AND_MOVE(TransformBendingEnergyPenaltyTerm)
~TransformBendingEnergyPenaltyTerm() override=default
void ThreadedGetValueAndDerivative(ThreadIdType threadID) const override
itkOverrideGetNameOfClassMacro(TransformBendingEnergyPenaltyTerm)
void GetValueAndDerivative(const ParametersType &parameters, MeasureType &value, DerivativeType &derivative) const override
MeasureType GetValue(const ParametersType &parameters) const override
void AfterThreadedGetValueAndDerivative(MeasureType &value, DerivativeType &derivative) const override
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
TransformPenaltyTerm< typename MetricBase< TElastix >::FixedImageType, double > Superclass
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