Hi,<br><br>I know I have asked the similar question before. <br><br>I tried to change "hdr" to "png" or some other file type. But the program wouldn't run at all. I am not an expert of c++. I wonder how I may change the output file in the DeformableRegistration1.cxx code. <br>
<br>I did change "hdr" to "png"...the program wouldn't run...<br><br> writer = itk::ImageFileWriter<ImageType>::New();<br> std::string ofn="fixed.hdr";<br> writer->SetFileName(ofn.c_str());<br>
writer->SetInput(registrationFilter->GetFixedImage() ); <br> writer->Write();<br><br> ofn="moving.hdr";<br> itk::ImageFileWriter<ImageType>::Pointer writer2;<br> writer2 = itk::ImageFileWriter<ImageType>::New();<br>
<br>Thank you,<br>stephen<br>