ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTimeVaryingVelocityFieldImageRegistrationMethodv4.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 itkTimeVaryingVelocityFieldImageRegistrationMethodv4_h
19#define itkTimeVaryingVelocityFieldImageRegistrationMethodv4_h
20
22
24
25namespace itk
26{
27
83template <typename TFixedImage,
84 typename TMovingImage,
85 typename TOutputTransform =
87 typename TVirtualImage = TFixedImage,
90 : public ImageRegistrationMethodv4<TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet>
91{
92public:
93 ITK_DISALLOW_COPY_AND_MOVE(TimeVaryingVelocityFieldImageRegistrationMethodv4);
94
100
102 itkNewMacro(Self);
103
105 static constexpr unsigned int ImageDimension = TFixedImage::ImageDimension;
106
109
111 using FixedImageType = TFixedImage;
112 using FixedImagePointer = typename FixedImageType::Pointer;
113 using MovingImageType = TMovingImage;
114 using MovingImagePointer = typename MovingImageType::Pointer;
115
116 using RegionType = typename MovingImageType::RegionType;
117
119 using typename Superclass::ImageMetricType;
123 using typename Superclass::MultiMetricType;
124
125 using OutputTransformType = TOutputTransform;
126 using OutputTransformPointer = typename OutputTransformType::Pointer;
127 using RealType = typename OutputTransformType::ScalarType;
128 using DerivativeType = typename OutputTransformType::DerivativeType;
129 using DerivativeValueType = typename DerivativeType::ValueType;
130 using TimeVaryingVelocityFieldType = typename OutputTransformType::TimeVaryingVelocityFieldType;
131 using TimeVaryingVelocityFieldPointer = typename TimeVaryingVelocityFieldType::Pointer;
132 using DisplacementFieldType = typename OutputTransformType::DisplacementFieldType;
133 using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
134 using DisplacementVectorType = typename TimeVaryingVelocityFieldType::PixelType;
135
137
140
142
144 itkSetMacro(LearningRate, RealType);
145 itkGetConstMacro(LearningRate, RealType);
147
149 itkSetMacro(NumberOfIterationsPerLevel, NumberOfIterationsArrayType);
150 itkGetConstMacro(NumberOfIterationsPerLevel, NumberOfIterationsArrayType);
152
154 itkSetMacro(ConvergenceThreshold, RealType);
155 itkGetConstMacro(ConvergenceThreshold, RealType);
157
159 itkSetMacro(ConvergenceWindowSize, unsigned int);
160 itkGetConstMacro(ConvergenceWindowSize, unsigned int);
162
163protected:
166 void
167 PrintSelf(std::ostream & os, Indent indent) const override;
168
170 void
171 GenerateData() override;
172
174 void
176
181 virtual void
183
184private:
186
188 unsigned int m_ConvergenceWindowSize{ 10 };
189
191};
192} // end namespace itk
193
194#ifndef ITK_MANUAL_INSTANTIATION
195# include "itkTimeVaryingVelocityFieldImageRegistrationMethodv4.hxx"
196#endif
197
198#endif
Array class with size defined at construction time.
Definition itkArray.h:48
Modifies the UpdateTransformParameters method to perform a Gaussian smoothing of the velocity field a...
ObjectToObjectMultiMetricv4< ImageDimension, ImageDimension, VirtualImageType, RealType > MultiMetricType
ImageToImageMetricv4< FixedImageType, MovingImageType, VirtualImageType, RealType > ImageMetricType
Control indentation during Print() invocation.
Definition itkIndent.h:50
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition itkPointSet.h:82
Implements transparent reference counting.
void PrintSelf(std::ostream &os, Indent indent) const override
void ThreadedGenerateData(const RegionType &, ThreadIdType)
typename OutputTransformType::TimeVaryingVelocityFieldType TimeVaryingVelocityFieldType
ImageRegistrationMethodv4< TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet > Superclass
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType