]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/BaseImageFilter.hxx
Branches extraction algorithm from MSTs updated
[FrontAlgorithms.git] / lib / fpaPlugins / BaseImageFilter.hxx
index 22d883762fd2882c08588d257dbe289d6884faa0..695794aa93b2f7b7afed71586915ff87c096ca58 100644 (file)
@@ -39,10 +39,15 @@ _ConfigureFilter( )
   filter->ClearSeeds( );
   for( unsigned int s = 0; s < seeds->GetNumberOfPoints( ); ++s )
   {
-    _P pnt = seeds->GetPoint< _P >( s );
-    typename _I::IndexType idx;
-    if( image->TransformPhysicalPointToIndex( pnt, idx ) )
-      filter->AddSeed( idx, 0 );
+    if( seeds->HaveEuclideanPoints( ) )
+    {
+      _P pnt = seeds->GetPoint< _P >( s );
+      typename _I::IndexType idx;
+      if( image->TransformPhysicalPointToIndex( pnt, idx ) )
+        filter->AddSeed( idx, 0 );
+    }
+    else
+      filter->AddSeed( seeds->GetPoint< typename _I::IndexType >( s ), 0 );
 
   } // rof
 
@@ -97,7 +102,7 @@ _ConfigureDebugger( F* filter )
       }
       else if( _I::ImageDimension == 3 )
       {
-        auto iren = this->m_MPRViewer->GetInteractor( 2 );
+        auto iren = this->m_MPRViewer->GetInteractor( 3 );
         if( iren != NULL )
         {
           typename _3D::Pointer debugger = _3D::New( );