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
elxDisplacementMagnitudePenalty.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 elxDisplacementMagnitudePenalty_h
19#define elxDisplacementMagnitudePenalty_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
43
44template <typename TElastix>
45class ITK_TEMPLATE_EXPORT DisplacementMagnitudePenalty
46 : public itk::DisplacementMagnitudePenaltyTerm<typename MetricBase<TElastix>::FixedImageType, double>
47 , public MetricBase<TElastix>
48{
49public:
51
56 using Pointer = itk::SmartPointer<Self>;
57 using ConstPointer = itk::SmartPointer<const Self>;
58
60 itkNewMacro(Self);
61
64
69 elxClassNameMacro("DisplacementMagnitudePenalty");
70
72 using typename Superclass1::CoordinateRepresentationType;
73 using typename Superclass1::MovingImageType;
74 using typename Superclass1::MovingImagePixelType;
75 using typename Superclass1::MovingImageConstPointer;
76 using typename Superclass1::FixedImageType;
77 using typename Superclass1::FixedImageConstPointer;
78 using typename Superclass1::FixedImageRegionType;
79 using typename Superclass1::TransformType;
80 using typename Superclass1::TransformPointer;
81 using typename Superclass1::InputPointType;
82 using typename Superclass1::OutputPointType;
83 using typename Superclass1::TransformJacobianType;
84 using typename Superclass1::InterpolatorType;
85 using typename Superclass1::InterpolatorPointer;
86 using typename Superclass1::RealType;
87 using typename Superclass1::GradientPixelType;
88 using typename Superclass1::GradientImageType;
89 using typename Superclass1::GradientImagePointer;
90 using typename Superclass1::FixedImageMaskType;
91 using typename Superclass1::FixedImageMaskPointer;
92 using typename Superclass1::MovingImageMaskType;
93 using typename Superclass1::MovingImageMaskPointer;
94 using typename Superclass1::MeasureType;
95 using typename Superclass1::DerivativeType;
96 using typename Superclass1::ParametersType;
97 using typename Superclass1::FixedImagePixelType;
98 using typename Superclass1::MovingImageRegionType;
99 using typename Superclass1::ImageSamplerType;
100 using typename Superclass1::ImageSamplerPointer;
101 using typename Superclass1::ImageSampleContainerType;
102 using typename Superclass1::ImageSampleContainerPointer;
103 using typename Superclass1::FixedImageLimiterType;
104 using typename Superclass1::MovingImageLimiterType;
105 using typename Superclass1::FixedImageLimiterOutputType;
106 using typename Superclass1::MovingImageLimiterOutputType;
107
109 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
110
112 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
113
115 using typename Superclass2::ElastixType;
116 using typename Superclass2::RegistrationType;
118
122 void
123 Initialize() override;
124
125protected:
128
130 ~DisplacementMagnitudePenalty() override = default;
131
132private:
134};
135
136} // end namespace elastix
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "elxDisplacementMagnitudePenalty.hxx"
140#endif
141
142#endif // end #ifndef elxDisplacementMagnitudePenalty_h
elxClassNameMacro("DisplacementMagnitudePenalty")
itkOverrideGetNameOfClassMacro(DisplacementMagnitudePenalty)
itk::DisplacementMagnitudePenaltyTerm< typename MetricBase< TElastix >::FixedImageType, double > Superclass1
~DisplacementMagnitudePenalty() override=default
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(DisplacementMagnitudePenalty)
itk::SingleValuedCostFunction ITKBaseType
typename ElastixType::RegistrationBaseType RegistrationType


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo