ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalRegistrationNCCFunction.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 itkVariationalRegistrationNCCFunction_h
19#define itkVariationalRegistrationNCCFunction_h
20
22#include "itkCovariantVector.h"
26
27namespace itk
28{
29
64template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
66 : public VariationalRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>
67{
68public:
69 ITK_DISALLOW_COPY_AND_MOVE(VariationalRegistrationNCCFunction);
70
76
78 itkNewMacro(Self);
79
81 itkOverrideGetNameOfClassMacro(VariationalRegistrationNCCFunction);
82
84 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
85
89
93
97
98 using IndexType = typename FixedImageType::IndexType;
99 using SizeType = typename FixedImageType::SizeType;
100 using SpacingType = typename FixedImageType::SpacingType;
101
105
111
115
117 void
119
123 ComputeUpdate(const NeighborhoodType & neighborhood,
124 void * globalData,
125 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
126
128 virtual void
133
135 virtual void
140
143 virtual void
148
153 ComputeGlobalTimeStep(void * itkNotUsed(GlobalData)) const override
154 {
155 return this->GetTimeStep() * m_Normalizer;
156 }
157
158protected:
161
163 void
164 PrintSelf(std::ostream & os, Indent indent) const override;
165
168
170
178
181
184
187
190};
191
192
193} // end namespace itk
194
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkVariationalRegistrationNCCFunction.hxx"
197#endif
198
199#endif
Calculate the derivative by central differencing.
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
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
typename Superclass::DisplacementFieldTypePointer DisplacementFieldTypePointer
Superclass::TimeStepType ComputeGlobalTimeStep(void *GlobalData) const override
typename Superclass::MovingImagePointer MovingImagePointer
typename Superclass::FixedImagePointer FixedImagePointer
~VariationalRegistrationNCCFunction() override=default
CentralDifferenceImageFunction< FixedImageType > GradientCalculatorType
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
ConstNeighborhoodIterator< FixedImageType > FixedImageNeighborhoodIteratorType
VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField > Superclass
typename Superclass::DisplacementFieldType DisplacementFieldType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....