ITK  6.0.0
Insight Toolkit
itkChainCodeToFourierSeriesPathFilter.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 itkChainCodeToFourierSeriesPathFilter_h
19#define itkChainCodeToFourierSeriesPathFilter_h
20
21#include "itkPathToPathFilter.h"
22#include "itkOffset.h"
23// Templates require interfaces conforming to itkPath.h and itkChainCodePath.h
24
25namespace itk
26{
41template <typename TInputChainCodePath, typename TOutputFourierSeriesPath>
42class ITK_TEMPLATE_EXPORT ChainCodeToFourierSeriesPathFilter
43 : public PathToPathFilter<TInputChainCodePath, TOutputFourierSeriesPath>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(ChainCodeToFourierSeriesPathFilter);
47
51
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(ChainCodeToFourierSeriesPathFilter);
60
62 using InputPathType = TInputChainCodePath;
64 using InputPathInputType = typename InputPathType::InputType;
65 using OutputPathType = TOutputFourierSeriesPath;
67 using OutputPathInputType = typename OutputPathType::InputType;
69 using OffsetType = typename InputPathType::OffsetType;
71
79 itkSetMacro(NumberOfHarmonics, unsigned int);
80
81protected:
84 void
85 PrintSelf(std::ostream & os, Indent indent) const override;
86
87 void
88 GenerateData() override;
89
90private:
91 unsigned int m_NumberOfHarmonics{};
92};
93} // end namespace itk
94
95#ifndef ITK_MANUAL_INSTANTIATION
96# include "itkChainCodeToFourierSeriesPathFilter.hxx"
97#endif
98
99#endif
Filter that produces a Fourier series version of a chain code path.
~ChainCodeToFourierSeriesPathFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Base class for filters that take a path as input and produce a path as output.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....