ITK  4.13.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:
47  typedef PathToPathFilter< TInputChainCodePath,
48  TOutputFourierSeriesPath > Superclass;
49 
52 
54  itkNewMacro(Self);
55 
58 
60  typedef TInputChainCodePath InputPathType;
61  typedef typename InputPathType::Pointer InputPathPointer;
62  typedef typename InputPathType::InputType InputPathInputType;
63  typedef TOutputFourierSeriesPath OutputPathType;
64  typedef typename OutputPathType::Pointer OutputPathPointer;
65  typedef typename OutputPathType::InputType OutputPathInputType;
67  typedef typename InputPathType::OffsetType OffsetType;
69 
77  itkSetMacro(NumberOfHarmonics, unsigned int)
78 
79 protected:
81  virtual ~ChainCodeToFourierSeriesPathFilter() ITK_OVERRIDE {}
82  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
83 
84  void GenerateData(void) ITK_OVERRIDE;
85 
86 private:
87  ITK_DISALLOW_COPY_AND_ASSIGN(ChainCodeToFourierSeriesPathFilter);
88 
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.
PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath > Superclass