ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalSymmetricDiffeomorphicRegistrationFilter.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 itkVariationalSymmetricDiffeomorphicRegistrationFilter_h
19#define itkVariationalSymmetricDiffeomorphicRegistrationFilter_h
20
22
23namespace itk
24{
25
90template <typename TFixedImage, typename TMovingImage, typename TDisplacementField>
92 : public VariationalDiffeomorphicRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
93{
94public:
96
102
104 itkNewMacro(Self);
105
108
110 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
111
113 using FixedImageType = TFixedImage;
114 using FixedImagePointer = typename FixedImageType::Pointer;
115 using FixedImageConstPointer = typename FixedImageType::ConstPointer;
116
118 using MovingImageType = TMovingImage;
119 using MovingImagePointer = typename MovingImageType::Pointer;
120 using MovingImageConstPointer = typename MovingImageType::ConstPointer;
121
123 using DisplacementFieldType = TDisplacementField;
124 using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
125
129
132
135
138
140 itkGetModifiableObjectMacro(InverseDisplacementField, DisplacementFieldType);
141
142protected:
145
147 void
148 PrintSelf(std::ostream & os, Indent indent) const override;
149
151 void
152 Initialize() override;
153
155 virtual void
157
160 void
161 ApplyUpdate(const TimeStepType & dt) override;
162
166 CalculateChange() override;
167
170 virtual void
172
175 itkGetModifiableObjectMacro(BackwardUpdateBuffer, UpdateBufferType);
176
178 using ThreadRegionType = typename UpdateBufferType::RegionType;
179
181 void
183 const ThreadRegionType & regionToProcess,
184 unsigned int threadId) override;
185
186private:
188 using FieldExponentiatorPointer = typename FieldExponentiatorType::Pointer;
189
193 typename UpdateBufferType::Pointer m_BackwardUpdateBuffer;
194};
195
196} // end namespace itk
197
198#ifndef ITK_MANUAL_INSTANTIATION
199# include "itkVariationalSymmetricDiffeomorphicRegistrationFilter.hxx"
200#endif
201
202#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
itk::ExponentialDisplacementFieldImageFilter< DisplacementFieldType, DisplacementFieldType > FieldExponentiatorType
VariationalDiffeomorphicRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
void ApplyUpdate(const TimeStepType &dt) override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void CalcInverseDeformationFromVelocityField(const DisplacementFieldType *velocityField)
void ThreadedApplyUpdate(const TimeStepType &dt, const ThreadRegionType &regionToProcess, unsigned int threadId) override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....