[Insight-users] DICOM viewer using itk and vtk

Kent Ogden ogdenk at upstate.edu
Wed Feb 29 14:23:59 EST 2012


Brenno, 

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? 

Kent Ogden

>>> Brenno Ribeiro <brennobr at gmail.com> 2/29/2012 01:54 PM >>>
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 ( http://permalink.gmane.org/gmane.comp.lib.itk.user/9435 ) 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? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120229/ffbc7545/attachment.htm>


More information about the Insight-users mailing list