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: 2002/12/17 17:50:35 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) 2002 Insight 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 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; }
00073 
00076   virtual PixelType ComputeUpdate(const NeighborhoodType &neighborhood,
00077                                   void * globalData,
00078                                   const FloatOffsetType& offset = FloatOffsetType(0.0)
00079                                   ) const;
00080 
00081 protected:
00082   BinaryMinMaxCurvatureFlowFunction();
00083   ~BinaryMinMaxCurvatureFlowFunction() {}
00084 
00085 private:
00086   BinaryMinMaxCurvatureFlowFunction(const Self&); //purposely not implemented
00087   void operator=(const Self&); //purposely not implemented
00088 
00089   double           m_Threshold;
00090 
00091 };
00092 
00093 }// end namespace itk
00094 
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkBinaryMinMaxCurvatureFlowFunction.txx"
00097 #endif
00098 
00099 #endif

Generated at Fri May 21 01:14:27 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000