]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/MarksInterface.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / MarksInterface.hxx
index 56de375583ca8a962028650ae8a77199235babac..8f00eb35a37d95a9cc5581dcdd780f6ef23ea919 100644 (file)
@@ -81,8 +81,8 @@ template< class _TVertex >
 unsigned long fpa::Base::MarksInterface< _TVertex >::
 _Collisions( const TVertex& a, const TVertex& b )
 {
-  auto ma = this->_GetMark( a );
-  auto mb = this->_GetMark( b );
+  unsigned long ma = this->_GetMark( a );
+  unsigned long mb = this->_GetMark( b );
   if( ma == mb || ma == 0 || mb == 0 )
     return( this->m_NumberOfFronts );
 
@@ -118,7 +118,7 @@ _Collisions( const TVertex& a, const TVertex& b )
           q.push( n );
 
     } // elihw
-    this->m_NumberOfFronts = this->m_NumberOfSeeds - count;
+    this->m_NumberOfFronts = this->m_NumberOfSeeds - count + 1;
 
   } // fi
   return( this->m_NumberOfFronts );