]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/RandomWalker.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / RandomWalker.hxx
index 5fb77681d925dd0a3c7b6b92072094de2fbaf6ac..21abc08f617cf5aede6f97a1b71c803f1314a71f 100644 (file)
@@ -93,7 +93,8 @@ _UnifySeeds( )
         {
           TVertex neigh = lIt.GetIndex( );
           neigh[ d ] += s;
-          is_seed |= ( lbl->GetPixel( neigh ) == 0 );
+          if( reg.IsInside( neigh ) )
+            is_seed |= ( lbl->GetPixel( neigh ) == 0 );
 
         } // rof