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; }
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&);
00088 void operator=(const Self&);
00089
00090 double m_Threshold;
00091
00092 };
00093
00094 }
00095
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkBinaryMinMaxCurvatureFlowFunction.txx"
00098 #endif
00099
00100 #endif
00101