<div>Dear all,</div>
<div> </div>
<div>I am a new user and in a hurry to use ITK for a project.</div>
<div> </div>
<div>After I compiled FFTImageFilterFourierDomainFiltering.cxx, I tried to run it. I intend to save the result image to a BMP or PNG file. The error message suggests that "BMPImageIO supports unsigned char only". I read the ITK user mannual about this example (page 256, 6.10.2), it doesn't mention anything about what image format you can save to.</div>
<div> </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 in order to save the result image to a BMP or other image formats.</font></font></div>
<div> </div>
<div>Many thank!</div>
<div> </div>
<div>The following is the error message</div>
<div> </div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt">filter.exe input.b<font size="3"><font face="Times New Roman">mp mask.bmp 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> </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"> </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: "void __thiscall itk::BMPImageIO::Write(const void *)"</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"> </span>only</font></font></p>
</div>