Hi,<br><br>I know I have asked the similar question before. <br><br>I tried to change &quot;hdr&quot; to &quot;png&quot; or some other file type. But the program wouldn&#39;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 &quot;hdr&quot; to &quot;png&quot;...the program wouldn&#39;t run...<br><br>  writer = itk::ImageFileWriter&lt;ImageType&gt;::New();<br>  std::string ofn=&quot;fixed.hdr&quot;;<br>  writer-&gt;SetFileName(ofn.c_str());<br>
  writer-&gt;SetInput(registrationFilter-&gt;GetFixedImage() ); <br>  writer-&gt;Write();<br><br>  ofn=&quot;moving.hdr&quot;;<br>  itk::ImageFileWriter&lt;ImageType&gt;::Pointer writer2;<br>  writer2 =  itk::ImageFileWriter&lt;ImageType&gt;::New();<br>
<br>Thank you,<br>stephen<br>