ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBSplineScatteredDataPointSetToGradientImageFilter.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 itkBSplineScatteredDataPointSetToGradientImageFilter_h
19#define itkBSplineScatteredDataPointSetToGradientImageFilter_h
20
21#include "itkCovariantVector.h"
22#include "itkPointSet.h"
26#include "itkVector.h"
28
29namespace itk
30{
52template <typename TInputPointSet, typename TOutputValueType>
54 : public PointSetToImageFilter<
55 TInputPointSet,
56 Image<CovariantVector<TOutputValueType, TInputPointSet::PointDimension>, TInputPointSet::PointDimension>>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(BSplineScatteredDataPointSetToGradientImageFilter);
60
62 static constexpr unsigned int PointSetDimension = TInputPointSet::PointDimension;
63 static constexpr unsigned int ImageDimension = TInputPointSet::PointDimension;
64
67
69 using InputPointSetType = TInputPointSet;
70 using InputPointSetPointer = typename InputPointSetType::Pointer;
73
78
80 itkNewMacro(Self);
81
84
86 using InputPixelType = typename InputPointSetType::PixelType;
87 static constexpr unsigned int InputVectorDimension = InputPixelType::Dimension;
88
89 using InputPointType = typename InputPointSetType::PointType;
90 using OutputValueType = TOutputValueType;
94
99
101
103
104 void
105 SetNumberOfLevels(unsigned int levels)
106 {
107 this->m_NumberOfLevels.Fill(levels);
108 this->Modified();
109 }
110 itkSetMacro(NumberOfLevels, ArrayType);
111 itkGetConstReferenceMacro(NumberOfLevels, ArrayType);
112
113 void
114 SetSplineOrder(unsigned int order)
115 {
116 this->m_SplineOrder.Fill(order);
117 this->Modified();
118 }
119 itkSetMacro(SplineOrder, ArrayType);
120 itkGetConstReferenceMacro(SplineOrder, ArrayType);
121
122 itkSetMacro(NumberOfControlPoints, ArrayType);
123 itkGetConstReferenceMacro(NumberOfControlPoints, ArrayType);
124
128 itkSetObjectMacro(BSplineScatteredDataFilter, BSplineScatteredDataFilterType);
129 itkGetModifiableObjectMacro(BSplineScatteredDataFilter, BSplineScatteredDataFilterType);
130
131
134
135protected:
140
143
144 void
146
147 void
149
150 void
152
153private:
155
159};
160} // end namespace itk
161
162#ifndef ITK_MANUAL_INSTANTIATION
163# include "itkBSplineScatteredDataPointSetToGradientImageFilter.hxx"
164#endif
165
166#endif
Evaluate a B-spline object given a grid of control points.
BSplineScatteredDataPointSetToImageFilter< InputPointSetType, InternalImageType > BSplineScatteredDataFilterType
Image< CovariantVector< OutputValueType, Self::ImageDimension >, Self::ImageDimension > OutputImageType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegion) override
Image filter which provides a B-spline output approximation.
A templated class holding a n-Dimensional covariant vector.
Templated n-dimensional image class.
Definition itkImage.h:89
ImageRegion< VImageDimension > RegionType
SmartPointer< Self > Pointer
Definition itkImage.h:96
virtual void Modified() const
std::vector< DataObjectPointer > DataObjectPointerArray
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)