<html>
<head>
</head>
<body style="font-variant: normal; margin-bottom: 1px; margin-top: 4px; margin-left: 4px; line-height: normal; margin-right: 4px">
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">Brenno,</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">I saw this error myself when I was trying to write some images to file recently. I ended up returning the image data directly to Matlab and so did not chase this down. I wonder, though, if the issue is related to the size difference between an int and a short int. On my system, an int is 4 bytes, a short int is 2 bytes. I don't know if jpg supports a 4 byte (32 bit) int, perhaps the error is worded incorrectly and should say that JPEG supports unsigned char/short int only?</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">Kent Ogden</font><br><br>>>> Brenno Ribeiro <brennobr@gmail.com> 2/29/2012 01:54 PM >>><br>Well, i tried differents samples and got the same error "Description: itk::ERROR: JPEGImageIO(0x21b6910): JPEG supports unsigned char/int only" (i tried the others formats like png, jpg and bmp too) - this thread ( <a href="http://permalink.gmane.org/gmane.comp.lib.itk.user/9435">http://permalink.gmane.org/gmane.comp.lib.itk.user/9435</a> ) is a bit different that my problem and what i got is the right way of the line command to execute the example. And i understood that the image from the .dcm has to have a different type from float or double but mas questions are the followings How to change the image type to a valid one? And if the image has a invalid type and it can't be changed how to deal with it?
</p>
</body>
</html>