ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBSplineApproximationGradientImageFilter.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 itkBSplineApproximationGradientImageFilter_h
19#define itkBSplineApproximationGradientImageFilter_h
20
22#include "itkCovariantVector.h"
23#include "itkMesh.h"
24#include "itkPointSet.h"
25
28
29namespace itk
30{
31
46template <typename TInputImage, typename TOutputValueType>
48 : public ImageToImageFilter<
49 TInputImage,
50 Image<CovariantVector<TOutputValueType, TInputImage::ImageDimension>, TInputImage::ImageDimension>>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(BSplineApproximationGradientImageFilter);
54
55 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
56
58
59 using InputImageType = TInputImage;
62
66
67 itkNewMacro(Self);
68
69 itkOverrideGetNameOfClassMacro(BSplineApproximationGradientImageFilter);
70
71 using OutputValueType = TOutputValueType;
72 using InputPixelType = typename InputImageType::PixelType;
74
75 static constexpr unsigned int InputVectorDimension = InputPixelType::Dimension;
76
84
86
90 void
91 SetNumberOfLevels(const unsigned int levels)
92 {
93 this->m_NumberOfLevels.Fill(levels);
94 this->Modified();
95 }
96 itkSetMacro(NumberOfLevels, ArrayType);
97 itkGetConstReferenceMacro(NumberOfLevels, ArrayType);
98
100 void
101 SetSplineOrder(const unsigned int order)
102 {
103 this->m_SplineOrder.Fill(order);
104 this->Modified();
105 }
106 itkSetMacro(SplineOrder, ArrayType);
107 itkGetConstReferenceMacro(SplineOrder, ArrayType);
108
122 void
123 SetControlPointSpacingRatio(const double & ratio)
124 {
125 this->m_ControlPointSpacingRatio.Fill(ratio);
126 this->Modified();
127 }
128 itkSetMacro(ControlPointSpacingRatio, ControlPointSpacingRatioType);
129 itkGetConstReferenceMacro(ControlPointSpacingRatio, ControlPointSpacingRatioType);
130
131protected:
134
136 void
138
140 void
142
143 void
144 GenerateData() override;
145
146private:
149
152
154};
155} // end namespace itk
156
157#ifndef ITK_MANUAL_INSTANTIATION
158# include "itkBSplineApproximationGradientImageFilter.hxx"
159#endif
160
161#endif
BSplineScatteredDataPointSetToGradientImageFilter< PointSetType, OutputValueType > PointSetToGradientFilterType
ImageToPointSetFilter< InputImageType, MeshType > ImageToPointSetFilterType
void EnlargeOutputRequestedRegion(DataObject *data) override
PointSet< InputPixelType, Self::ImageDimension > PointSetType
Image< CovariantVector< TOutputValueType, ImageDimension >, ImageDimension > OutputImageType
typename ImageToPointSetFilterType::Pointer ImageToPointSetFilterPointerType
typename PointSetToGradientFilterType::Pointer PointSetToGradientFilterPointerType
~BSplineApproximationGradientImageFilter() override=default
ImageToImageFilter< InputImageType, OutputImageType > Superclass
FixedArray< double, Self::ImageDimension > ControlPointSpacingRatioType
typename PointSetToGradientFilterType::ArrayType ArrayType
Uses a B-spline approximation to a PointSet to calculate a gradient image.
Base class for all data objects in ITK.
Simulate a standard C array with copy semantics.
Convert an Image to a PointSet.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements the N-dimensional mesh structure.
Definition itkMesh.h:127
virtual void Modified() const
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition itkPointSet.h:82
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)