go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxDistancePreservingRigidityPenaltyTerm.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 elxDistancePreservingRigidityPenaltyTerm_h
19#define elxDistancePreservingRigidityPenaltyTerm_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
62
63template <typename TElastix>
64class ITK_TEMPLATE_EXPORT DistancePreservingRigidityPenalty
65 : public itk::DistancePreservingRigidityPenaltyTerm<typename MetricBase<TElastix>::FixedImageType, double>
66 , public MetricBase<TElastix>
67{
68public:
70
75 using Pointer = itk::SmartPointer<Self>;
76 using ConstPointer = itk::SmartPointer<const Self>;
77
79 itkNewMacro(Self);
80
83
88 elxClassNameMacro("DistancePreservingRigidityPenalty");
89
91 using typename Superclass1::CoordinateRepresentationType;
92 using typename Superclass1::MovingImageType;
93 using typename Superclass1::MovingImagePixelType;
94 using typename Superclass1::MovingImageConstPointer;
95 using typename Superclass1::FixedImageType;
96 using typename Superclass1::FixedImageConstPointer;
97 using typename Superclass1::FixedImageRegionType;
98 using typename Superclass1::TransformType;
99 using typename Superclass1::TransformPointer;
100 using typename Superclass1::InputPointType;
101 using typename Superclass1::OutputPointType;
102 using typename Superclass1::TransformJacobianType;
103 using typename Superclass1::InterpolatorType;
104 using typename Superclass1::InterpolatorPointer;
105 using typename Superclass1::RealType;
106 using typename Superclass1::GradientPixelType;
107 using typename Superclass1::GradientImageType;
108 using typename Superclass1::GradientImagePointer;
109 using typename Superclass1::FixedImageMaskType;
110 using typename Superclass1::FixedImageMaskPointer;
111 using typename Superclass1::MovingImageMaskType;
112 using typename Superclass1::MovingImageMaskPointer;
113 using typename Superclass1::MeasureType;
114 using typename Superclass1::DerivativeType;
115 using typename Superclass1::ParametersType;
116 using typename Superclass1::FixedImagePixelType;
117 using typename Superclass1::MovingImageRegionType;
118 using typename Superclass1::ImageSamplerType;
119 using typename Superclass1::ImageSamplerPointer;
120 using typename Superclass1::ImageSampleContainerType;
121 using typename Superclass1::ImageSampleContainerPointer;
122 using typename Superclass1::FixedImageLimiterType;
123 using typename Superclass1::MovingImageLimiterType;
124 using typename Superclass1::FixedImageLimiterOutputType;
125 using typename Superclass1::MovingImageLimiterOutputType;
126 using typename Superclass1::CoefficientImageType;
127 using typename Superclass1::SegmentedImageType;
128
130 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
131
133 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
134
136 using typename Superclass2::ElastixType;
137 using typename Superclass2::RegistrationType;
139
141 using SegmentedImagePyramidType = itk::MultiResolutionPyramidImageFilter<SegmentedImageType, SegmentedImageType>;
142 using SegmentedImagePyramidPointer = typename SegmentedImagePyramidType::Pointer;
143
147 void
148 Initialize() override;
149
155 void
157
158protected:
161
164
165private:
167};
168
169} // end namespace elastix
170
171#ifndef ITK_MANUAL_INSTANTIATION
172# include "elxDistancePreservingRigidityPenaltyTerm.hxx"
173#endif
174
175#endif // end #ifndef elxDistancePreservingRigidityPenaltyTerm_h
itkOverrideGetNameOfClassMacro(DistancePreservingRigidityPenalty)
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
~DistancePreservingRigidityPenalty() override=default
itk::DistancePreservingRigidityPenaltyTerm< typename MetricBase< TElastix >::FixedImageType, double > Superclass1
elxClassNameMacro("DistancePreservingRigidityPenalty")
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itk::MultiResolutionPyramidImageFilter< SegmentedImageType, SegmentedImageType > SegmentedImagePyramidType
typename SegmentedImagePyramidType::Pointer SegmentedImagePyramidPointer
ITK_DISALLOW_COPY_AND_MOVE(DistancePreservingRigidityPenalty)
itk::SingleValuedCostFunction ITKBaseType
typename ElastixType::RegistrationBaseType RegistrationType


Generated on 26-02-2026 for elastix by doxygen 1.16.1 (669aeeefca743c148e2d935b3d3c69535c7491e6) elastix logo