ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalRegistrationSSDFunction.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 itkVariationalRegistrationSSDFunction_h
19#define itkVariationalRegistrationSSDFunction_h
20
22
24
25namespace itk
26{
27
52template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
54 : public VariationalRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(VariationalRegistrationSSDFunction);
58
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(VariationalRegistrationSSDFunction);
70
72 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
73
77
81
85
87 using IndexType = typename FixedImageType::IndexType;
88 using SizeType = typename FixedImageType::SizeType;
89 using SpacingType = typename FixedImageType::SpacingType;
90
99
103
105 void
107
111 ComputeUpdate(const NeighborhoodType & neighborhood,
112 void * globalData,
113 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
114
116 virtual void
121
123 virtual void
128
131 virtual void
136
141 virtual void
142 SetIntensityDifferenceThreshold(const double threshold)
143 {
145 }
146
151 virtual double
156
161 ComputeGlobalTimeStep(void * itkNotUsed(GlobalData)) const override
162 {
163 return this->GetTimeStep() * m_Normalizer;
164 }
165
166protected:
169
171
173 void
174 PrintSelf(std::ostream & os, Indent indent) const override;
175
183
184private:
187
190
193
196
199
202};
203
204} // end namespace itk
205
206#ifndef ITK_MANUAL_INSTANTIATION
207# include "itkVariationalRegistrationSSDFunction.hxx"
208#endif
209
210#endif
Calculate the derivative by central differencing.
ConstNeighborhoodIterator< TDisplacementField, DefaultBoundaryConditionType > NeighborhoodType
typename ConstNeighborhoodIterator< TDisplacementField >::RadiusType RadiusType
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
typename FixedImageType::ConstPointer FixedImagePointer
typename DisplacementFieldType::ConstPointer DisplacementFieldTypePointer
typename MovingImageType::ConstPointer MovingImagePointer
Image< MaskImagePixelType, ImageDimension > MaskImageType
typename MaskImageType::ConstPointer MaskImagePointer
CentralDifferenceImageFunction< FixedImageType > GradientCalculatorType
typename Superclass::FixedImagePointer FixedImagePointer
typename GradientCalculatorType::Pointer GradientCalculatorPointer
void PrintSelf(std::ostream &os, Indent indent) const override
PixelType ComputeUpdate(const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
Superclass::DisplacementFieldTypePointer DisplacementFieldTypePointer
typename Superclass::MovingImagePointer MovingImagePointer
~VariationalRegistrationSSDFunction() override=default
Superclass::TimeStepType ComputeGlobalTimeStep(void *GlobalData) const override
virtual void SetIntensityDifferenceThreshold(const double threshold)
typename Superclass::DisplacementFieldType DisplacementFieldType
VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField > Superclass
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....