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 );
42 const TPixel& t0, const TPixel& t1,
43 const unsigned int& samples
47 RegionGrowWithMultipleThresholds( );
48 virtual ~RegionGrowWithMultipleThresholds( );
50 virtual bool _UpdateResult( _TNode& n );
51 virtual void _AfterLoop( );
54 RegionGrowWithMultipleThresholds( const Self& ); // Not impl.
55 void operator=( const Self& ); // Not impl.
58 double m_DerivativeThreshold;
59 THistogram m_Histogram;
66 #include <fpa/Image/RegionGrowWithMultipleThresholds.hxx>
68 #endif // __FPA__IMAGE__REGIONGROWWITHMULTIPLETHRESHOLDS__H__