X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FCTBronchi%2FFunctions.h;h=2e9732ce326106ba55b4c15ca1a9bb8807e5ebbf;hb=9817c556a0b8b5e3b332d45f07faa84d91afb2d0;hp=272c974f81162e429a8fba9e6ac3ac3b226fbabf;hpb=b69a5d04d117c1fdd297999c4fb034db54911aca;p=FrontAlgorithms.git diff --git a/appli/CTBronchi/Functions.h b/appli/CTBronchi/Functions.h index 272c974..2e9732c 100644 --- a/appli/CTBronchi/Functions.h +++ b/appli/CTBronchi/Functions.h @@ -32,22 +32,21 @@ namespace CTBronchi typename _TReader::Pointer reader = _TReader::New( ); reader->SetFileName( fname ); double t = MeasureTime( reader ); - std::cout << "Read " << fname << " in " << t << " s" << std::endl; + std::cout << "Read \"" << fname << "\" in " << t << " s" << std::endl; image = reader->GetOutput( ); image->DisconnectPipeline( ); } // ----------------------------------------------------------------------- - template< class _TImagePtr > - void WriteImage( const _TImagePtr& image, const std::string& fname ) + template< class _TImage > + void WriteImage( const _TImage* image, const std::string& fname ) { - typedef typename _TImagePtr::ObjectType _TImage; typedef itk::ImageFileWriter< _TImage > _TWriter; typename _TWriter::Pointer writer = _TWriter::New( ); writer->SetFileName( fname ); writer->SetInput( image ); double t = MeasureTime( writer ); - std::cout << "Wrote " << fname << " in " << t << " s" << std::endl; + std::cout << "Wrote \"" << fname << "\" in " << t << " s" << std::endl; } } // ecapseman