<div class="gmail_quote">On Tue, Feb 15, 2011 at 4:55 AM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com">mkitkinsightuser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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<> or an itk::RescaleIntensityImageFilter<> would propably solve this problem?<br>
<br>Thanks in advance<br><br></blockquote><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">JPEG indeed only supports unsigned char/int. You could use the CastImageFilter if you only want to change the type of the pixels, or the RescaleIntensityImageFilter if you want to stretch the value range while changing the type.</div>
<div class="gmail_quote"><br><div>David </div></div>