00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkAnchorDilateImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-09-30 18:07:03 $ 00007 Version: $Revision: 1.3 $ 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 00018 #ifndef __itkAnchorDilateImageFilter_h 00019 #define __itkAnchorDilateImageFilter_h 00020 00021 #include "itkAnchorErodeDilateImageFilter.h" 00022 00023 namespace itk { 00024 00025 template<class TImage, class TKernel> 00026 class ITK_EXPORT AnchorDilateImageFilter : 00027 public AnchorErodeDilateImageFilter<TImage, TKernel, std::greater<typename TImage::PixelType>, std::greater_equal<typename TImage::PixelType> > 00028 00029 { 00030 public: 00031 typedef AnchorDilateImageFilter Self; 00032 typedef AnchorErodeDilateImageFilter<TImage, TKernel, std::less<typename TImage::PixelType>, std::greater_equal<typename TImage::PixelType> > Superclass; 00033 00035 itkTypeMacro(AnchorDilateImageFilter, 00036 AnchorErodeDilateImageFilter); 00037 00038 typedef SmartPointer<Self> Pointer; 00039 typedef SmartPointer<const Self> ConstPointer; 00040 00042 itkNewMacro(Self); 00043 00044 virtual ~AnchorDilateImageFilter() {} 00045 protected: 00046 00047 typedef typename TImage::PixelType PixelType; 00048 00049 AnchorDilateImageFilter() 00050 { 00051 this->m_Boundary = NumericTraits< PixelType >::NonpositiveMin(); 00052 } 00053 00054 00055 void PrintSelf(std::ostream& os, Indent indent) const 00056 { 00057 os << indent << "Anchor dilation: " << std::endl; 00058 } 00059 00060 private: 00061 00062 AnchorDilateImageFilter(const Self&); //purposely not implemented 00063 void operator=(const Self&); //purposely not implemented 00064 00065 }; 00066 00067 00068 } // namespace itk 00069 00070 #endif 00071