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

itkAnchorCloseImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAnchorCloseImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-09-30 16:41:10 $
00007   Version:   $Revision: 1.2 $
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 __itkAnchorCloseImageFilter_h
00019 #define __itkAnchorCloseImageFilter_h
00020 
00021 #include "itkAnchorOpenCloseImageFilter.h"
00022 
00023 namespace itk {
00024 
00025 template<class TImage, class TKernel>
00026 class  ITK_EXPORT AnchorCloseImageFilter :
00027     public AnchorOpenCloseImageFilter<TImage, TKernel, std::greater<typename TImage::PixelType>, 
00028     std::less<typename TImage::PixelType>, std::greater_equal<typename TImage::PixelType>, 
00029     std::less_equal<typename TImage::PixelType> >
00030 
00031 {
00032 public:
00033   typedef AnchorCloseImageFilter Self;
00034   typedef AnchorOpenCloseImageFilter<TImage, TKernel, std::greater<typename TImage::PixelType>, 
00035   std::less<typename TImage::PixelType>, std::greater_equal<typename TImage::PixelType>, 
00036   std::less_equal<typename TImage::PixelType> > Superclass;
00037 
00038   typedef SmartPointer<Self>        Pointer;
00039   typedef SmartPointer<const Self>  ConstPointer;
00040 
00042   itkNewMacro(Self);
00043 
00044   virtual ~AnchorCloseImageFilter() {}
00045 protected:
00046   AnchorCloseImageFilter()
00047     {
00048     this->m_Boundary1 = NumericTraits< ITK_TYPENAME TImage::PixelType >::NonpositiveMin();
00049     this->m_Boundary2 = NumericTraits< ITK_TYPENAME TImage::PixelType >::max();
00050     }
00051   void PrintSelf(std::ostream& os, Indent indent) const
00052     {
00053     os << indent << "Anchor closing: " << std::endl;
00054     }
00055 
00056 private:
00057   
00058   AnchorCloseImageFilter(const Self&); //purposely not implemented
00059   void operator=(const Self&); //purposely not implemented
00060 
00061 };
00062 
00063 
00064 } // namespace itk
00065 
00066 #endif
00067 

Generated at Mon Jul 12 2010 17:42:03 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000