ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBSplineDecompositionImageFilter.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/*=========================================================================
19 *
20 * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21 *
22 * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23 *
24 * For complete copyright, license and disclaimer of warranty information
25 * please refer to the NOTICE file at the top of the ITK source tree.
26 *
27 *=========================================================================*/
28#ifndef itkBSplineDecompositionImageFilter_h
29#define itkBSplineDecompositionImageFilter_h
30
31#include <vector>
32
34#include "vnl/vnl_matrix.h"
35
37
38namespace itk
39{
61template <typename TInputImage, typename TOutputImage>
62class ITK_TEMPLATE_EXPORT BSplineDecompositionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63{
64public:
65 ITK_DISALLOW_COPY_AND_MOVE(BSplineDecompositionImageFilter);
66
72
74 itkOverrideGetNameOfClassMacro(BSplineDecompositionImageFilter);
75
77 itkNewMacro(Self);
78
80 using typename Superclass::InputImageType;
81 using typename Superclass::InputImagePointer;
83 using typename Superclass::OutputImagePointer;
84
86
88 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
89 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
90
93
94 using SplinePolesVectorType = std::vector<double>;
95
98 void
99 SetSplineOrder(unsigned int SplineOrder);
100
101 itkGetConstMacro(SplineOrder, unsigned int);
102
104 itkGetConstMacro(SplinePoles, SplinePolesVectorType);
105
107 itkGetConstMacro(NumberOfPoles, unsigned int);
108
109
111 itkConceptMacro(InputConvertibleToOutputCheck,
114
115protected:
118 void
119 PrintSelf(std::ostream & os, Indent indent) const override;
120
121 void
122 GenerateData() override;
123
125 void
127
129 void
131
132private:
133 using CoefficientsVectorType = std::vector<CoeffType>;
134
136 virtual void
138
140 virtual bool
142
145 void
147
149 virtual void
151
154 virtual void
156
159 void
161
164 void
166
169 void
171
172 // Variables needed by the smoothing spline routine.
173
176
178 typename TInputImage::SizeType m_DataLength{};
179
181 unsigned int m_SplineOrder{ 0 };
182
184
185 unsigned int m_NumberOfPoles{};
186
188 double m_Tolerance{ 1e-10 };
189
191 unsigned int m_IteratorDirection{ 0 };
192};
193} // namespace itk
194
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkBSplineDecompositionImageFilter.hxx"
197#endif
198
199#endif
virtual void SetInitialAntiCausalCoefficient(double z)
void CopyScratchToCoefficients(OutputLinearIterator &)
virtual void SetInitialCausalCoefficient(double z)
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
ImageLinearIteratorWithIndex< TOutputImage > OutputLinearIterator
void EnlargeOutputRequestedRegion(DataObject *output) override
typename itk::NumericTraits< typename TOutputImage::PixelType >::RealType CoeffType
~BSplineDecompositionImageFilter() override=default
void GenerateInputRequestedRegion() override
void CopyCoefficientsToScratch(OutputLinearIterator &)
void SetSplineOrder(unsigned int SplineOrder)
Base class for all data objects in ITK.
A multi-dimensional image iterator that visits image pixels within a region in a "scan-line" order.
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....