1 #ifndef __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__
2 #define __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__
5 #include <fpa/Image/RegionGrowWithMultipleCriteria.h>
12 * @param I Input image type
15 class RegionGrowWithMultipleThresholds
16 : public RegionGrowWithMultipleCriteria< I >
19 typedef RegionGrowWithMultipleThresholds Self;
20 typedef RegionGrowWithMultipleCriteria< I > Superclass;
21 typedef itk::SmartPointer< Self > Pointer;
22 typedef itk::SmartPointer< const Self > ConstPointer;
24 typedef typename I::PixelType TPixel;
26 typedef std::map< TPixel, unsigned long > THistogram;
27 typedef typename Superclass::TBaseAlgorithm TBaseAlgorithm;
28 typedef typename Superclass::TMembershipFunction TMembershipFunction;
29 typedef typename Superclass::TFunctions TFunctions;
32 typedef typename TBaseAlgorithm::_TNode _TNode;
36 itkTypeMacro( RegionGrowWithMultipleThresholds, RegionGrow );
38 itkGetConstMacro( DerivativeThreshold, double );
39 itkSetMacro( DerivativeThreshold, double );
42 void AddThreshold( const TPixel& v );
50 RegionGrowWithMultipleThresholds( );
51 virtual ~RegionGrowWithMultipleThresholds( );
53 virtual bool _UpdateResult( _TNode& n );
54 virtual void _BeforeLoop( );
55 virtual void _AfterLoop( );
58 RegionGrowWithMultipleThresholds( const Self& ); // Not impl.
59 void operator=( const Self& ); // Not impl.
62 double m_DerivativeThreshold;
63 THistogram m_Histogram;
70 #include <fpa/Image/RegionGrowWithMultipleThresholds.hxx>
72 #endif // __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__