<div>Dear all,</div>
<div>&nbsp;</div>
<div>I am a new user and in a hurry to use ITK for a project.</div>
<div>&nbsp;</div>
<div>After I compiled FFTImageFilterFourierDomainFiltering.cxx, I tried to run it. I intend to save the&nbsp;result image to a BMP or&nbsp;PNG file. The error message suggests that &quot;BMPImageIO supports unsigned char only&quot;. I read the ITK user mannual about this example (page 256, 6.10.2), it doesn&#39;t mention anything about what image format you can save to.</div>

<div>&nbsp;</div>
<div>Is that because the output of <font size="2">VnlFFT filter cannot be processed by <font size="2">ImageFileWriter? If this is the case, how can I change code&nbsp;in order to save the result image to a BMP or other image formats.</font></font></div>

<div>&nbsp;</div>
<div>Many thank!</div>
<div>&nbsp;</div>
<div>The following is the error message</div>
<div>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt">filter.exe &nbsp;input.b<font size="3"><font face="Times New Roman">mp&nbsp; mask.bmp&nbsp; result.bmp ( This is my command line input.)</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">Error writing the real image:</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">&nbsp;</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">itk::ExceptionObject (0131EC58)</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">Location: &quot;void __thiscall itk::BMPImageIO::Write(const void *)&quot;</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">File: ..\..\..\InsightToolkit-3.4.0\Code\IO\itkBMPImageIO.cxx</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">Line: 650</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">Description: itk::ERROR: BMPImageIO(01823740): BMPImageIO supports unsigned char</font></font><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">&nbsp;</span>only</font></font></p>
</div>