Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkAntiAliasBinaryImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkAntiAliasBinaryImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/30 21:45:39 $ 00007 Version: $Revision: 1.11 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkAntiAliasBinaryImageFilter_h_ 00018 #define __itkAntiAliasBinaryImageFilter_h_ 00019 #include "itkSparseFieldLevelSetImageFilter.h" 00020 #include "itkCurvatureFlowFunction.h" 00021 00022 namespace itk { 00023 00099 template <class TInputImage, class TOutputImage> 00100 class ITK_EXPORT AntiAliasBinaryImageFilter 00101 : public SparseFieldLevelSetImageFilter<TInputImage, TOutputImage> 00102 { 00103 public: 00105 typedef AntiAliasBinaryImageFilter Self; 00106 typedef SparseFieldLevelSetImageFilter<TInputImage, TOutputImage> Superclass; 00107 typedef SmartPointer<Self> Pointer; 00108 typedef SmartPointer<const Self> ConstPointer; 00109 00111 typedef typename Superclass::ValueType ValueType; 00112 typedef typename Superclass::IndexType IndexType; 00113 typedef typename Superclass::TimeStepType TimeStepType; 00114 typedef typename Superclass::OutputImageType OutputImageType; 00115 typedef typename Superclass::InputImageType InputImageType; 00116 00117 00119 typedef CurvatureFlowFunction<OutputImageType> CurvatureFunctionType; 00120 00122 typedef typename TInputImage::ValueType BinaryValueType; 00123 00125 itkNewMacro(Self); 00126 00128 itkTypeMacro(AntiAliasBinaryImageFilter, SparseFieldLevelSetImageFilter); 00129 00131 itkGetMacro(UpperBinaryValue, BinaryValueType); 00132 itkGetMacro(LowerBinaryValue, BinaryValueType); 00133 00136 void SetMaximumIterations (unsigned int i) 00137 { 00138 itkWarningMacro("SetMaximumIterations is deprecated. Please use SetNumberOfIterations instead."); 00139 this->SetNumberOfIterations(i); 00140 } 00141 unsigned int GetMaximumIterations() 00142 { 00143 itkWarningMacro("GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead."); 00144 return this->GetNumberOfIterations(); 00145 } 00146 protected: 00147 AntiAliasBinaryImageFilter(); 00148 ~AntiAliasBinaryImageFilter() {} 00149 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00150 00153 inline virtual ValueType CalculateUpdateValue(const IndexType &idx, 00154 const TimeStepType &dt, 00155 const ValueType &value, 00156 const ValueType &change); 00157 00160 void GenerateData(); 00161 00162 private: 00163 BinaryValueType m_UpperBinaryValue; 00164 BinaryValueType m_LowerBinaryValue; 00165 typename CurvatureFunctionType::Pointer m_CurvatureFunction; 00166 const TInputImage * m_InputImage; 00167 00168 }; 00169 00170 } // end namespace itk 00171 00172 #ifndef ITK_MANUAL_INSTANTIATION 00173 #include "itkAntiAliasBinaryImageFilter.txx" 00174 #endif 00175 00176 #endif

Generated at Sun Apr 1 02:24:17 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000