<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"> typedef itk::ImageFileReader< ImageType > ReaderType;<br> typedef itk::ImageFileWriter< ImageType > WriterType;<br> ReaderType::Pointer reader = ReaderType::New();<br> WriterType::Pointer writer = WriterType::New();<br> WriterType::Pointer writer2 = WriterType::New();<br> <br> filter->SetInput( reader->GetOutput() );<br> writer2->SetInput( filter->GetOutput() );<br> writer->SetInput( image );<br><br> char * outputFile = "ItkImage.jpg";<br> char * inputFile = "BrainScan.jpg";<br> char * outputFile2= "ModBrainScan.jpg";<br> reader->SetFileName( inputFile );<br> writer->SetFileName(
outputFile );<br> writer2->SetFileName(outputFile2);<br><br>I Get a runtime error: Filename BrainScan does not exist, it does. Is the location the issue?<br><br><div><font style="background-color: rgb(0, 0, 127);" color="#c00000">LUTZOW</font></div></td></tr></table><br>