]> Creatis software - FrontAlgorithms.git/blobdiff - tests/image/Dijkstra_Gaussian.cxx
...
[FrontAlgorithms.git] / tests / image / Dijkstra_Gaussian.cxx
index 1e147c6102dcf56cc87aee7811ff9d2aeb104660..5622e7f28c0a8e412e13b923d0734276f0c89c21 100644 (file)
@@ -4,9 +4,9 @@
 #include <fpa/Image/Functors/Dijkstra/Gaussian.h>
 
 // -------------------------------------------------------------------------
-const unsigned int Dim = 2;
-typedef unsigned char TPixel;
-typedef float         TScalar;
+const unsigned int Dim = 3;
+typedef short TPixel;
+typedef float TScalar;
 
 typedef itk::Image< TPixel, Dim >                                    TInputImage;
 typedef itk::Image< TScalar, Dim >                                  TScalarImage;
@@ -56,13 +56,14 @@ int main( int argc, char* argv[] )
   filter->SetStopAtOneFront( stop_at_one_front );
 
   // Get all seeds
-  for( int i = 7; i < argc; i += 2 )
+  for( int i = 7; i < argc; i += 3 )
   {
     if( i + 1 < argc )
     {
       TInputImage::IndexType seed;
       seed[ 0 ] = std::atoi( argv[ i ] );
       seed[ 1 ] = std::atoi( argv[ i + 1 ] );
+      seed[ 2 ] = std::atoi( argv[ i + 2 ] );
       filter->AddSeed( seed );
 
     } // fi