00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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; }
00073
00076 virtual PixelType ComputeUpdate(const NeighborhoodType &neighborhood,
00077 void * globalData,
00078 const FloatOffsetType& offset = FloatOffsetType(0.0)
00079 );
00080
00081 protected:
00082 BinaryMinMaxCurvatureFlowFunction();
00083 ~BinaryMinMaxCurvatureFlowFunction() {}
00084
00085 private:
00086 BinaryMinMaxCurvatureFlowFunction(const Self&);
00087 void operator=(const Self&);
00088
00089 double m_Threshold;
00090
00091 };
00092
00093 }
00094
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkBinaryMinMaxCurvatureFlowFunction.txx"
00097 #endif
00098
00099 #endif