go home Home | Main Page | Modules | 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{
63template <class 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::TransformParametersType;
103 using typename Superclass1::TransformJacobianType;
104 using typename Superclass1::InterpolatorType;
105 using typename Superclass1::InterpolatorPointer;
106 using typename Superclass1::RealType;
107 using typename Superclass1::GradientPixelType;
108 using typename Superclass1::GradientImageType;
109 using typename Superclass1::GradientImagePointer;
110 using typename Superclass1::GradientImageFilterType;
111 using typename Superclass1::GradientImageFilterPointer;
112 using typename Superclass1::FixedImageMaskType;
113 using typename Superclass1::FixedImageMaskPointer;
114 using typename Superclass1::MovingImageMaskType;
115 using typename Superclass1::MovingImageMaskPointer;
116 using typename Superclass1::MeasureType;
117 using typename Superclass1::DerivativeType;
118 using typename Superclass1::ParametersType;
121 using typename Superclass1::ImageSamplerType;
130 using typename Superclass1::SegmentedImageType;
131
133 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
134
136 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
137
139 using typename Superclass2::ElastixType;
140 using typename Superclass2::RegistrationType;
142
144 using SegmentedImagePyramidType = itk::MultiResolutionPyramidImageFilter<SegmentedImageType, SegmentedImageType>;
145 using SegmentedImagePyramidPointer = typename SegmentedImagePyramidType::Pointer;
146
150 void
151 Initialize() override;
152
158 void
160
161protected:
164
167
168private:
170};
171
172} // end namespace elastix
173
174#ifndef ITK_MANUAL_INSTANTIATION
175# include "elxDistancePreservingRigidityPenaltyTerm.hxx"
176#endif
177
178#endif // end #ifndef elxDistancePreservingRigidityPenaltyTerm_h
A penalty term designed to preserve inter-voxel distances within rigid body regions.
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
~DistancePreservingRigidityPenalty() override=default
elxClassNameMacro("DistancePreservingRigidityPenalty")
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itk::MultiResolutionPyramidImageFilter< SegmentedImageType, SegmentedImageType > SegmentedImagePyramidType
typename SegmentedImagePyramidType::Pointer SegmentedImagePyramidPointer
ITK_DISALLOW_COPY_AND_MOVE(DistancePreservingRigidityPenalty)
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73
itk::SingleValuedCostFunction ITKBaseType
Definition: elxMetricBase.h:97
typename ElastixType::RegistrationBaseType RegistrationType
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
This class is a base class for any image sampler.
Base class for all ITK limiter function objects.
typename Superclass::AdvancedTransformType TransformType


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