[Insight-users] FileScan issue

Alex Lutzow allutz3rd at yahoo.com
Sun Nov 2 14:00:18 EST 2008


    typedef itk::ImageFileReader< ImageType > ReaderType;
    typedef itk::ImageFileWriter< ImageType > WriterType;
    ReaderType::Pointer reader = ReaderType::New();
    WriterType::Pointer writer = WriterType::New();
    WriterType::Pointer writer2 = WriterType::New();
    
    filter->SetInput( reader->GetOutput() );
    writer2->SetInput( filter->GetOutput() );
    writer->SetInput( image );

    char * outputFile = "ItkImage.jpg";
    char * inputFile = "BrainScan.jpg";
    char * outputFile2= "ModBrainScan.jpg";
    reader->SetFileName( inputFile );
    writer->SetFileName( outputFile );
    writer2->SetFileName(outputFile2);

I Get a runtime error:  Filename BrainScan does not exist, it does.  Is the location the issue?

LUTZOW


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081102/a965ab30/attachment.htm>


More information about the Insight-users mailing list