]> Creatis software - FrontAlgorithms.git/blobdiff - appli/examples/example_ImageAlgorithmFastMarching_00.cxx
...
[FrontAlgorithms.git] / appli / examples / example_ImageAlgorithmFastMarching_00.cxx
diff --git a/appli/examples/example_ImageAlgorithmFastMarching_00.cxx b/appli/examples/example_ImageAlgorithmFastMarching_00.cxx
deleted file mode 100644 (file)
index 1573ce6..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <iostream>
-#include <itkImage.h>
-
-#include <fpa/Image/FastMarching.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dim = 2;
-typedef unsigned char TPixel;
-typedef double        TCost;
-typedef itk::Image< TPixel, Dim > TImage;
-
-typedef fpa::Image::FastMarching< TImage, TCost > TFrontAlgorithm;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  // Create a dummy image
-  TImage::SizeType imageSize;
-  imageSize.Fill( 100 );
-
-  TImage::SpacingType imageSpacing;
-  imageSpacing.Fill( 1 );
-
-  TImage::Pointer image = TImage::New( );
-  image->SetRegions( imageSize );
-  image->SetSpacing( imageSpacing );
-  image->Allocate( );
-  image->FillBuffer( TPixel( 1 ) );
-
-  // Seed
-  TImage::IndexType seed;
-  seed.Fill( 50 );
-
-  // Configure algorithm
-  TFrontAlgorithm::Pointer algorithm = TFrontAlgorithm::New( );
-  algorithm->AddSeed( seed, TCost( 0 ) );
-  algorithm->SetInput( image );
-  algorithm->SetNeighborhoodOrder( 1 );
-  algorithm->Update( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$