ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVariationalRegistrationDiffusionRegularizer.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 itkVariationalRegistrationDiffusionRegularizer_h
19#define itkVariationalRegistrationDiffusionRegularizer_h
20
22
23namespace itk
24{
25
50template <typename TDisplacementField>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(VariationalRegistrationDiffusionRegularizer);
55
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(VariationalRegistrationDiffusionRegularizer);
67
69 static constexpr unsigned int ImageDimension = TDisplacementField::ImageDimension;
70
77
82
85
87 itkGetConstMacro(Alpha, ValueType);
88
89protected:
92
94 void
95 PrintSelf(std::ostream & os, Indent indent) const override;
96
99 void
100 GenerateData() override;
101
104 void
105 Initialize() override;
106
109 virtual void
110 InitLUMatrices(ValueType ** alpha, ValueType ** beta, ValueType ** gamma, int n, int dim);
111
114 virtual void
115 RegularizeComponent(const int component);
116
119 {
121 unsigned int component; // The current dimension.
122 BufferImagePointer bPtr; // Pointer to the image buffer.
123 };
124
127 {
129 unsigned int direction; // Current direction.
130 ValueType * alpha; // Pointer to matrix diagonal.
131 ValueType * beta; // Pointer to matrix subdiagonal.
132 ValueType * gamma; // Pointer to matrix superdiagonal.
133 BufferImagePointer bPtr; // Pointer to force field image buffer.
134 BufferImagePointer vPtr; // Pointer to temporal result image buffer.
135 };
136
139 {
141 unsigned int component; // The current dimension.
142 BufferImagePointer * vPtr; // Pointer to temporal image buffers.
143 };
144
148
152
156
162 virtual int
163 SplitBoundaryFaceRegion(int i, int num, int inDir, BufferImageRegionType & splitRegion);
164
165private:
168
170 typename DisplacementFieldType::SizeType m_Size;
171
173 typename DisplacementFieldType::SpacingType m_Spacing;
174
175 // Attributes for AOS calculation
178
182
185
188
191};
192
193} // namespace itk
194
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkVariationalRegistrationDiffusionRegularizer.hxx"
197#endif
198
199#endif
Templated n-dimensional image class.
Definition itkImage.h:89
ImageRegion< VImageDimension > RegionType
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
virtual void RegularizeComponent(const int component)
void PrintSelf(std::ostream &os, Indent indent) const override
VariationalRegistrationRegularizer< TDisplacementField > Superclass
typename Superclass::DisplacementFieldConstPointer DisplacementFieldConstPointer
static ITK_THREAD_RETURN_TYPE MergeDirectionsCallback(void *arg)
static ITK_THREAD_RETURN_TYPE RegularizeDirectionCallback(void *arg)
~VariationalRegistrationDiffusionRegularizer() override=default
static ITK_THREAD_RETURN_TYPE CalcBufferCallback(void *arg)
virtual void InitLUMatrices(ValueType **alpha, ValueType **beta, ValueType **gamma, int n, int dim)
virtual int SplitBoundaryFaceRegion(int i, int num, int inDir, BufferImageRegionType &splitRegion)
typename DisplacementFieldType::ConstPointer DisplacementFieldConstPointer
typename DisplacementFieldType::PixelType PixelType
typename NumericTraits< PixelType >::ValueType ValueType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void ITK_THREAD_RETURN_TYPE
#define itkSetMacro(name, type)