ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkChainCodeToFourierSeriesPathFilter_h 00019 #define __itkChainCodeToFourierSeriesPathFilter_h 00020 00021 #include "itkPathToPathFilter.h" 00022 #include "itkOffset.h" 00023 //Templates require interfaces conforming to itkPath.h and itkChainCodePath.h 00024 00025 namespace itk 00026 { 00040 template< class TInputChainCodePath, class TOutputFourierSeriesPath > 00041 class ITK_EXPORT ChainCodeToFourierSeriesPathFilter:public 00042 PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath > 00043 { 00044 public: 00046 typedef ChainCodeToFourierSeriesPathFilter Self; 00047 typedef PathToPathFilter< TInputChainCodePath, 00048 TOutputFourierSeriesPath > Superclass; 00049 00050 typedef SmartPointer< Self > Pointer; 00051 typedef SmartPointer< const Self > ConstPointer; 00052 00054 itkNewMacro(Self); 00055 00057 itkTypeMacro(ChainCodeToFourierSeriesPathFilter, PathToPathFilter); 00058 00060 typedef TInputChainCodePath InputPathType; 00061 typedef typename InputPathType::Pointer InputPathPointer; 00062 typedef typename InputPathType::InputType InputPathInputType; 00063 typedef TOutputFourierSeriesPath OutputPathType; 00064 typedef typename OutputPathType::Pointer OutputPathPointer; 00065 typedef typename OutputPathType::InputType OutputPathInputType; 00066 typedef typename InputPathType::IndexType IndexType; 00067 typedef typename InputPathType::OffsetType OffsetType; 00068 typedef typename OutputPathType::VectorType VectorType; 00069 00077 itkSetMacro(NumberOfHarmonics, unsigned int) 00078 protected: 00079 ChainCodeToFourierSeriesPathFilter(); 00080 virtual ~ChainCodeToFourierSeriesPathFilter() {} 00081 void PrintSelf(std::ostream & os, Indent indent) const; 00083 00084 void GenerateData(void); 00085 00086 private: 00087 ChainCodeToFourierSeriesPathFilter(const Self &); //purposely not implemented 00088 void operator=(const Self &); //purposely not implemented 00089 00090 unsigned int m_NumberOfHarmonics; 00091 }; 00092 } // end namespace itk 00093 00094 #ifndef ITK_MANUAL_INSTANTIATION 00095 #include "itkChainCodeToFourierSeriesPathFilter.hxx" 00096 #endif 00097 00098 #endif 00099