X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tests%2Fimage%2FVTK%2FPolyLineParametricPathToPolyData.cxx;fp=tests%2Fimage%2FVTK%2FPolyLineParametricPathToPolyData.cxx;h=0000000000000000000000000000000000000000;hb=a8ac405fe1422bc0792a810f7f0693096a22c20e;hp=e92af292337421819518383943005f5721ddfe00;hpb=8abe87eaa0d29ba667d5cbf35f4ca1ca2e38c6c4;p=FrontAlgorithms.git diff --git a/tests/image/VTK/PolyLineParametricPathToPolyData.cxx b/tests/image/VTK/PolyLineParametricPathToPolyData.cxx deleted file mode 100644 index e92af29..0000000 --- a/tests/image/VTK/PolyLineParametricPathToPolyData.cxx +++ /dev/null @@ -1,54 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= - -#include -#include -#include -#include -#include - -// ------------------------------------------------------------------------- -const unsigned int Dim = 2; -typedef fpa::DataStructures::Image::PolyLineParametricPath< Dim > TPath; - -// ------------------------------------------------------------------------- -int main( int argc, char* argv[] ) -{ - // Get arguments - if( argc < 3 ) - { - std::cerr - << "Usage: " << argv[ 0 ] - << " input_path output_vtk" - << std::endl; - return( 1 ); - - } // fi - std::string input_path_filename = argv[ 1 ]; - std::string output_vtk_filename = argv[ 2 ]; - - // Read image - typedef fpa::Common::Image::PolyLineParametricPathReader< TPath > TReader; - TReader::Pointer input_path_reader = TReader::New( ); - input_path_reader->SetFileName( input_path_filename ); - input_path_reader->Update( ); - - // Execute filter - typedef fpa::VTK::Image::PolyLineParametricPathToPolyDataFilter< TPath > TFilter; - vtkSmartPointer< TFilter > filter = vtkSmartPointer< TFilter >::New( ); - filter->SetInput( input_path_reader->GetOutput( ) ); - filter->Update( ); - - // Save results - vtkSmartPointer< vtkPolyDataWriter > output_vtk_writer = - vtkSmartPointer< vtkPolyDataWriter >::New( ); - output_vtk_writer->SetFileName( output_vtk_filename.c_str( ) ); - output_vtk_writer->SetInputConnection( filter->GetOutputPort( ) ); - output_vtk_writer->Update( ); - - return( 0 ); -} - -// eof - $RCSfile$