Well,<br>I made the changes in the directory file but there are still some problems in the command prompt window:<br>1) When I am trying to convert a inputfile.jpg to an outputfile.png, then I get the .png file but I cannot see anything as it is a black screen<br>
2) When I am trying to convert a inputfile.jpg to an outputfile.jpg, then I have again an exception caught, which says that JPEG supports unsigned char/int only<br><br>Could somebody explain me why I face these two problems? Using an itk::CastImageFilter&lt;&gt; or an  itk::RescaleIntensityImageFilter&lt;&gt; would propably solve this problem?<br>
<br>Thanks in advance<br><br><div class="gmail_quote">2011/2/15 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="gmail_quote"><div>On Mon, Feb 14, 2011 at 6:57 PM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


When I type project input.png output.jpg then I have an exception object caught:<br>It is says:<br><br><i>itk::ImageFileReaderException &lt;00C7EC24&gt;<br>Location: &quot;void_thiscall itk::ImageFileReader&lt;class itk::Image&lt;short,2&gt;,class<br>




itk::</i><i>DefaultConvertPixelTraits&lt;</i><i>short&gt; &gt;::GenerateOutputInformation&lt;</i><i>void&gt;&quot;<br>File: c:\.....\itkImageFileReader.</i><i>txx<br>Line: 146<br>Discription: Could not create IO object for file inputfile.png<br>



The file doen&#39;t exist.<br>
Filename = inputfile.png</i><br><br>Can you give an advise how to solve this problem?<br></blockquote><div><br></div></div>The file inputfile.png either must be in the same directory as project.exe or you must specify the full path to the file:</div>


<div class="gmail_quote"><br></div><div class="gmail_quote">project.exe c:\yourDirectory\inputfile.png outputfile.jpg</div><div class="gmail_quote"><br><font color="#888888"><div>David </div></font></div>
</blockquote></div><br>