ITK  4.9.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 >
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;
66  typedef typename InputPathType::IndexType IndexType;
67  typedef typename InputPathType::OffsetType OffsetType;
68  typedef typename OutputPathType::VectorType VectorType;
69 
77  itkSetMacro(NumberOfHarmonics, unsigned int)
78 
79 protected:
82  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
83 
84  void GenerateData(void) ITK_OVERRIDE;
85 
86 private:
87  ChainCodeToFourierSeriesPathFilter(const Self &) ITK_DELETE_FUNCTION;
88  void operator=(const Self &) ITK_DELETE_FUNCTION;
89 
90  unsigned int m_NumberOfHarmonics;
91 };
92 } // end namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkChainCodeToFourierSeriesPathFilter.hxx"
96 #endif
97 
98 #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.
void PrintSelf(std::ostream &os, Indent indent) const override
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