]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/MinimumSpanningTreeToImageFilter.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / MinimumSpanningTreeToImageFilter.hxx
index 1ef00392f2112f459b852f962f02180b43b5fec1..f52e75996f1083e07645f2347b93be16d55ab52a 100644 (file)
@@ -59,15 +59,17 @@ GenerateData( )
   output->Allocate( );
   output->FillBuffer( color );
 
-  for( TPathData d: this->m_Paths )
+  typename TPaths::const_iterator d = this->m_Paths.begin( );
+  for( ; d != this->m_Paths.end( ); ++d )
   {
-    typename TMST::TVertices path = mst->GetPath( d.Start, d.End );
-    color[ 0 ] = d.Red;
-    color[ 1 ] = d.Green;
-    color[ 2 ] = d.Blue;
+    typename TMST::TVertices path = mst->GetPath( d->Start, d->End );
+    color[ 0 ] = d->Red;
+    color[ 1 ] = d->Green;
+    color[ 2 ] = d->Blue;
     color[ 3 ] = std::numeric_limits< TOutputPixelValue >::max( );
-    for( TIndex i: path )
-      output->SetPixel( i, color );
+    typename TMST::TVertices::const_iterator i = path.begin( );
+    for( ; i != path.end( ); ++i )
+      output->SetPixel( *i, color );
 
   } // rof
 }