1 #ifndef __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__
2 #define __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__
5 #include <fpa/Image/RegionGrow.h>
12 * @param I Input image type
15 class RegionGrowWithMultipleThresholds
16 : public RegionGrow< I >
19 typedef RegionGrowWithMultipleThresholds Self;
20 typedef RegionGrow< 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;
30 typedef typename TBaseAlgorithm::_TNode _TNode;
34 itkTypeMacro( RegionGrowWithMultipleThresholds, RegionGrow );
36 itkGetConstMacro( DerivativeThreshold, double );
37 itkSetMacro( DerivativeThreshold, double );
40 void AddThreshold( const TPixel& v );
48 RegionGrowWithMultipleThresholds( );
49 virtual ~RegionGrowWithMultipleThresholds( );
51 virtual bool _UpdateResult( _TNode& n );
52 virtual void _AfterLoop( );
55 RegionGrowWithMultipleThresholds( const Self& ); // Not impl.
56 void operator=( const Self& ); // Not impl.
59 double m_DerivativeThreshold;
60 THistogram m_Histogram;
67 #include <fpa/Image/RegionGrowWithMultipleThresholds.hxx>
69 #endif // __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__