X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tests%2Fimage%2FDijkstra_Gaussian.cxx;h=5622e7f28c0a8e412e13b923d0734276f0c89c21;hb=5bd12737b3a5054d972501d15678d2a245753b77;hp=1e147c6102dcf56cc87aee7811ff9d2aeb104660;hpb=e97624b0f1db169d85337d9045bce1bbd83f72e4;p=FrontAlgorithms.git diff --git a/tests/image/Dijkstra_Gaussian.cxx b/tests/image/Dijkstra_Gaussian.cxx index 1e147c6..5622e7f 100644 --- a/tests/image/Dijkstra_Gaussian.cxx +++ b/tests/image/Dijkstra_Gaussian.cxx @@ -4,9 +4,9 @@ #include // ------------------------------------------------------------------------- -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