ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkChainCodeToFourierSeriesPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 {
40 template< typename TInputChainCodePath, typename TOutputFourierSeriesPath >
41 class ITK_TEMPLATE_EXPORT ChainCodeToFourierSeriesPathFilter:public
42  PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_ASSIGN(ChainCodeToFourierSeriesPathFilter);
46 
49  using Superclass = PathToPathFilter< TInputChainCodePath,
50  TOutputFourierSeriesPath >;
51 
54 
56  itkNewMacro(Self);
57 
60 
62  using InputPathType = TInputChainCodePath;
63  using InputPathPointer = typename InputPathType::Pointer;
64  using InputPathInputType = typename InputPathType::InputType;
65  using OutputPathType = TOutputFourierSeriesPath;
66  using OutputPathPointer = typename OutputPathType::Pointer;
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 PrintSelf(std::ostream & os, Indent indent) const override;
85 
86  void GenerateData() override;
87 
88 private:
89  unsigned int m_NumberOfHarmonics;
90 };
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkChainCodeToFourierSeriesPathFilter.hxx"
95 #endif
96 
97 #endif
Light weight base class for most itk classes.
Base class for filters that take a path as input and produce a path as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Filter that produces a Fourier series version of a chain code path.