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

itkBinaryMinMaxCurvatureFlowFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryMinMaxCurvatureFlowFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:28 $
00007   Version:   $Revision: 1.9 $
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 __itkBinaryMinMaxCurvatureFlowFunction_h_
00018 #define __itkBinaryMinMaxCurvatureFlowFunction_h_
00019 
00020 #include "itkMinMaxCurvatureFlowFunction.h"
00021 #include "itkMacro.h"
00022 #include "itkNeighborhoodOperator.h"
00023 
00024 namespace itk {
00025 
00040 template <class TImage>
00041 class ITK_EXPORT BinaryMinMaxCurvatureFlowFunction :
00042     public MinMaxCurvatureFlowFunction<TImage>
00043 {
00044 public:
00046   typedef BinaryMinMaxCurvatureFlowFunction Self;
00047   typedef MinMaxCurvatureFlowFunction<TImage> Superclass;
00048   typedef SmartPointer<Self> Pointer;
00049   typedef SmartPointer<const Self> ConstPointer;
00050 
00052   itkNewMacro(Self);
00053 
00055   itkTypeMacro( BinaryMinMaxCurvatureFlowFunction,
00056                 MinMaxCurvatureFlowFunction );
00057 
00059   typedef typename Superclass::PixelType PixelType;
00060   typedef typename Superclass::RadiusType RadiusType;
00061   typedef typename Superclass::NeighborhoodType NeighborhoodType;
00062   typedef typename Superclass::FloatOffsetType FloatOffsetType;
00063   typedef typename Superclass::ImageType  ImageType;
00064 
00066   itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);  
00067 
00069   void SetThreshold( const double thresh )
00070   { m_Threshold = thresh; }
00071   const double & GetThreshold() const
00072   { return m_Threshold; }
00074 
00077   virtual PixelType ComputeUpdate(const NeighborhoodType &neighborhood,
00078                                   void * globalData,
00079                                   const FloatOffsetType& offset = FloatOffsetType(0.0)
00080     );
00081 
00082 protected:
00083   BinaryMinMaxCurvatureFlowFunction();
00084   ~BinaryMinMaxCurvatureFlowFunction() {}
00085 
00086 private:
00087   BinaryMinMaxCurvatureFlowFunction(const Self&); //purposely not implemented
00088   void operator=(const Self&); //purposely not implemented
00089 
00090   double           m_Threshold;
00091 
00092 };
00093 
00094 }// end namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkBinaryMinMaxCurvatureFlowFunction.txx"
00098 #endif
00099 
00100 #endif
00101 

Generated at Tue Jul 29 19:11:57 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000