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

itkEdgePotentialImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkEdgePotentialImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:47 $ 00007 Version: $Revision: 1.5 $ 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 __itkEdgePotentialImageFilter_h 00018 #define __itkEdgePotentialImageFilter_h 00019 00020 #include "itkUnaryFunctorImageFilter.h" 00021 00022 namespace itk 00023 { 00024 00036 namespace Functor { 00037 00038 template< class TInput, class TOutput> 00039 class EdgePotential 00040 { 00041 public: 00042 EdgePotential() {}; 00043 ~EdgePotential() {}; 00044 inline TOutput operator()( const TInput & A ) 00045 { 00046 return static_cast<TOutput>( exp( -1.0 * A.GetNorm() ) ); 00047 } 00048 }; 00049 } 00050 00051 template <class TInputImage, class TOutputImage> 00052 class ITK_EXPORT EdgePotentialImageFilter : 00053 public 00054 UnaryFunctorImageFilter<TInputImage,TOutputImage, 00055 Functor::EdgePotential< 00056 typename TInputImage::PixelType, 00057 typename TOutputImage::PixelType> > 00058 { 00059 public: 00061 typedef EdgePotentialImageFilter Self; 00062 typedef UnaryFunctorImageFilter<TInputImage,TOutputImage, 00063 Functor::EdgePotential< 00064 typename TInputImage::PixelType, 00065 typename TOutputImage::PixelType> 00066 > Superclass; 00067 typedef SmartPointer<Self> Pointer; 00068 typedef SmartPointer<const Self> ConstPointer; 00069 00071 itkNewMacro(Self); 00072 00073 protected: 00074 EdgePotentialImageFilter() {} 00075 virtual ~EdgePotentialImageFilter() {} 00076 00077 private: 00078 EdgePotentialImageFilter(const Self&); //purposely not implemented 00079 void operator=(const Self&); //purposely not implemented 00080 00081 }; 00082 00083 00084 } // end namespace itk 00085 00086 00087 #endif

Generated at Sat Mar 31 02:17:24 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000