[Insight-users] JPEG image

Luis Ibanez luis.ibanez at kitware.com
Thu, 22 Apr 2004 20:13:29 -0400


Hi Jayant,

The itk::JPEGImageIO class supports the following types:

    signed char
    signed short
    signed int
    signed long
    unsigned char
    unsigned short
    unsigned int
    unsigned long
    float
    double
    RGB<unsigned char>
    RGBA<unsigned char>


However,
   If you have a choice, I would suggest you
   to use the MetaImage format instead.


Regards,



    Luis



-------------------------
Jayant Chauhan wrote:

> I have a query, do even JPEGs require the pixel values to be unsigned 
> char or shorts ?? What I am doing is I am normalizing the pixel values 
> of a grayscale image. ie, dividing each pixel value by max or lets say 
> 255. Can I not store the image as a PNG or a jpeg ??? I would want to 
> store the image as a more common format.
>