ITK  5.4.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 
25 namespace itk
26 {
41 template <typename TInputChainCodePath, typename TOutputFourierSeriesPath>
42 class ITK_TEMPLATE_EXPORT ChainCodeToFourierSeriesPathFilter
43  : public PathToPathFilter<TInputChainCodePath, TOutputFourierSeriesPath>
44 {
45 public:
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 
81 protected:
83  ~ChainCodeToFourierSeriesPathFilter() override = default;
84  void
85  PrintSelf(std::ostream & os, Indent indent) const override;
86 
87  void
88  GenerateData() override;
89 
90 private:
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
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::ChainCodeToFourierSeriesPathFilter
Filter that produces a Fourier series version of a chain code path.
Definition: itkChainCodeToFourierSeriesPathFilter.h:42
itk::ChainCodeToFourierSeriesPathFilter::InputPathType
TInputChainCodePath InputPathType
Definition: itkChainCodeToFourierSeriesPathFilter.h:62
itk::ChainCodeToFourierSeriesPathFilter::OutputPathInputType
typename OutputPathType::InputType OutputPathInputType
Definition: itkChainCodeToFourierSeriesPathFilter.h:67
itkOffset.h
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itk::PathToPathFilter
Base class for filters that take a path as input and produce a path as output.
Definition: itkPathToPathFilter.h:38
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ChainCodeToFourierSeriesPathFilter::OutputPathPointer
typename OutputPathType::Pointer OutputPathPointer
Definition: itkChainCodeToFourierSeriesPathFilter.h:66
itk::ChainCodeToFourierSeriesPathFilter::OffsetType
typename InputPathType::OffsetType OffsetType
Definition: itkChainCodeToFourierSeriesPathFilter.h:69
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::ChainCodeToFourierSeriesPathFilter::IndexType
typename InputPathType::IndexType IndexType
Definition: itkChainCodeToFourierSeriesPathFilter.h:68
itk::ChainCodeToFourierSeriesPathFilter::InputPathPointer
typename InputPathType::Pointer InputPathPointer
Definition: itkChainCodeToFourierSeriesPathFilter.h:63
itk::ChainCodeToFourierSeriesPathFilter::InputPathInputType
typename InputPathType::InputType InputPathInputType
Definition: itkChainCodeToFourierSeriesPathFilter.h:64
itk::ChainCodeToFourierSeriesPathFilter::VectorType
typename OutputPathType::VectorType VectorType
Definition: itkChainCodeToFourierSeriesPathFilter.h:70
itk::ChainCodeToFourierSeriesPathFilter::OutputPathType
TOutputFourierSeriesPath OutputPathType
Definition: itkChainCodeToFourierSeriesPathFilter.h:65
itkPathToPathFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24