ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalRegistrationDemonsFunction.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkVariationalRegistrationDemonsFunction_h
19#define itkVariationalRegistrationDemonsFunction_h
20
23
24namespace itk
25{
26
55template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
57 : public VariationalRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(VariationalRegistrationDemonsFunction);
61
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(VariationalRegistrationDemonsFunction);
73
75 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
76
80
84
88
90 using IndexType = typename FixedImageType::IndexType;
91 using SizeType = typename FixedImageType::SizeType;
92 using SpacingType = typename FixedImageType::SpacingType;
93
101
105
107 void
109
113 ComputeUpdate(const NeighborhoodType & neighborhood,
114 void * globalData,
115 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
116
118 virtual void
123
125 virtual void
130
133 virtual void
138
143 virtual void
144 SetIntensityDifferenceThreshold(const double threshold)
145 {
147 }
148
153 virtual double
158
159protected:
162
164
166 void
167 PrintSelf(std::ostream & os, Indent indent) const override;
168
176
177private:
180
183
186
189
192
195
198};
199
200} // end namespace itk
201
202#ifndef ITK_MANUAL_INSTANTIATION
203# include "itkVariationalRegistrationDemonsFunction.hxx"
204#endif
205
206#endif
Calculate the derivative by central differencing.
ConstNeighborhoodIterator< TDisplacementField, DefaultBoundaryConditionType > NeighborhoodType
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
typename Superclass::DisplacementFieldType DisplacementFieldType
void PrintSelf(std::ostream &os, Indent indent) const override
CentralDifferenceImageFunction< FixedImageType > GradientCalculatorType
~VariationalRegistrationDemonsFunction() override=default
Superclass::DisplacementFieldTypePointer DisplacementFieldTypePointer
VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField > Superclass
PixelType ComputeUpdate(const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
typename GradientCalculatorType::Pointer GradientCalculatorPointer
typename FixedImageType::ConstPointer FixedImagePointer
typename DisplacementFieldType::ConstPointer DisplacementFieldTypePointer
typename MovingImageType::ConstPointer MovingImagePointer
Image< MaskImagePixelType, ImageDimension > MaskImageType
typename MaskImageType::ConstPointer MaskImagePointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....