X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2Fexample_ImageAlgorithmFastMarching_00.cxx;fp=appli%2Fexamples%2Fexample_ImageAlgorithmFastMarching_00.cxx;h=0000000000000000000000000000000000000000;hb=9c4035dc18f4e44a92cda3e3c1c6e583c94ef06b;hp=1573ce60271caea4beab2badcff3c5b40c2adb87;hpb=e832f438861464a8d521464b61be7e31c896adb8;p=FrontAlgorithms.git diff --git a/appli/examples/example_ImageAlgorithmFastMarching_00.cxx b/appli/examples/example_ImageAlgorithmFastMarching_00.cxx deleted file mode 100644 index 1573ce6..0000000 --- a/appli/examples/example_ImageAlgorithmFastMarching_00.cxx +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include - -#include - -// ------------------------------------------------------------------------- -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$