]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/RegionGrowWithMultipleThresholds.h
Segmentation completely debugged (at least for 10 images)
[FrontAlgorithms.git] / lib / fpa / Image / RegionGrowWithMultipleThresholds.h
index 5156b33dbd9bce73614bd7c28734fd4be82aa37b..409b18bb90895d8e65c4a70b303f604f6be3891e 100644 (file)
@@ -40,8 +40,8 @@ namespace fpa
       itkNewMacro( Self );
       itkTypeMacro( RegionGrowWithMultipleThresholds, RegionGrow );
 
-      itkGetConstMacro( DerivativeThreshold, double );
-      itkSetMacro( DerivativeThreshold, double );
+      itkGetConstMacro( DifferenceThreshold, double );
+      itkSetMacro( DifferenceThreshold, double );
 
     public:
       void AddThreshold( const TPixel& v );
@@ -59,6 +59,8 @@ namespace fpa
       virtual void _AfterMainLoop( );
       virtual void _AfterLoop( );
       virtual bool _UpdateResult( _TNode& n );
+      virtual void _Mark( const _TNode& n );
+      virtual bool _CheckStopCondition( );
 
     private:
       RegionGrowWithMultipleThresholds( const Self& ); // Not impl.
@@ -66,8 +68,12 @@ namespace fpa
 
     protected:
       TThresholds m_Thresholds;
-      double m_DerivativeThreshold;
+      double m_DifferenceThreshold;
       THistogram m_Histogram;
+      unsigned long m_TotalCount;
+      double m_LastDiff;
+      bool m_StopForced;
+      TPixel m_StopThreshold;
     };
 
   } // ecapseman