ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSteerableFilterFreqImageSource.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 itkSteerableFilterFreqImageSource_h
19#define itkSteerableFilterFreqImageSource_h
20
21#include "itkImageSource.h"
22#include "itkFixedArray.h"
23#include "itkSize.h"
24#include "itkArray2D.h"
25
26#include <vector>
27#include <complex>
28
29
30namespace itk
31{
32
33template <typename TOutputImage>
34class SteerableFilterFreqImageSource : public ImageSource<TOutputImage>
35{
36public:
37 ITK_DISALLOW_COPY_AND_MOVE(SteerableFilterFreqImageSource);
38
44
46 using OutputImagePixelType = typename TOutputImage::PixelType;
47
49 using OutputImageRegionType = typename TOutputImage::RegionType;
50
53 using SpacingType = typename TOutputImage::SpacingType;
54
57 using PointType = typename TOutputImage::PointType;
58
61 using DirectionType = typename TOutputImage::DirectionType;
62
63 using RangeType = std::vector<std::vector<double>>;
64
66 static constexpr unsigned int NDimensions = TOutputImage::ImageDimension;
67
69
70
71 // Type used to store the range for each axis
72
74 using SizeType = typename TOutputImage::SizeType;
75 using SizeValueType = typename TOutputImage::SizeValueType;
76
78 itkOverrideGetNameOfClassMacro(SteerableFilterFreqImageSource);
79
81 itkNewMacro(Self);
82
84 virtual void
85 SetSize(const SizeValueType * values);
86
88 virtual void
89 SetSize(const SizeType values);
90
92 itkGetVectorMacro(Size, const SizeValueType, NDimensions);
93
96 virtual void
97 SetSpacing(const float * values);
98 virtual void
99 SetSpacing(const double * values);
100
102 itkGetConstReferenceMacro(Spacing, SpacingType);
103
106 virtual void
107 SetOrigin(const float * values);
108 virtual void
109 SetOrigin(const double * values);
110
112 itkGetConstReferenceMacro(Origin, PointType);
113
116
117 itkGetConstReferenceMacro(Direction, DirectionType);
118
119 // itkSetMacro(Ranges, RangeType);
120
121 using DimMinusOneDoubleArrayType = FixedArray<double, TOutputImage::ImageDimension - 1>;
123
125 itkGetConstReferenceMacro(Orientation, DoubleArrayType);
126
127 itkSetMacro(AngularBandwidth, double);
128 itkGetConstReferenceMacro(AngularBandwidth, double);
129
130protected:
133 void
134 PrintSelf(std::ostream & os, Indent indent) const override;
135 void
136 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
137 void
139
140private:
141 SizeValueType m_Size[NDimensions]; // size of the output image
145
148};
149
150} // end namespace itk
151
152#ifndef ITK_MANUAL_INSTANTIATION
153# include "itkSteerableFilterFreqImageSource.hxx"
154#endif
155
156#endif
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
FixedArray< double, FloatImageType::ImageDimension > DoubleArrayType
virtual void SetSize(const SizeType values)
virtual void SetOrigin(const double *values)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
virtual void SetOrigin(const float *values)
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetSpacing(const double *values)
virtual void SetSize(const SizeValueType *values)
virtual void SetSpacing(const float *values)
FixedArray< double, FloatImageType::ImageDimension - 1 > DimMinusOneDoubleArrayType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition itkSize.h:70