12 bit greyscale JPEG images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

12 bit greyscale JPEG images

JpCorkery
Hi.

I've been working with 12 bit greyscale jpeg images in a project, and I'd gotten some success using the Java Advanced Image I/O package to process these, but it's not completely satisfactory.

I did a bit of searching but came up with nothing. I was wondering if there was a plugin for ImageJ that anyone could point me at that can handle these images - so far, when I try opening these with ImageJ, I get the following exception:

sun.awt.image.ImageFormatException: Unsupported JPEG data precision 12
        at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
        at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
        at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
        at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
        at sun.awt.image.ImageFetcher.run(Unknown Source)

Can anyone help me out with this?

Jp Corkery
Reply | Threaded
Open this post in threaded view
|

Re: 12 bit greyscale JPEG images

Leon Espinosa
Hello, I don't know if it helps... but I use Image to open .TIF 12  
bit image (from Nikon DS1-QM camera) and it works perfect (actually  
it open the image as a 16 bit image with automatic contrast adjust to  
0 - 4096 levels). I guess that ImageMagick line command software  
could convert all your images from jpeg to tif at once... ImageMagick  
exist for all os.

something like:

convert *.jpg jpeg-%03d.tif



Le 20 juin 07 à 12:23, JpCorkery a écrit :

> Hi.
>
> I've been working with 12 bit greyscale jpeg images in a project,  
> and I'd
> gotten some success using the Java Advanced Image I/O package to  
> process
> these, but it's not completely satisfactory.
>
> I did a bit of searching but came up with nothing. I was wondering  
> if there
> was a plugin for ImageJ that anyone could point me at that can  
> handle these
> images - so far, when I try opening these with ImageJ, I get the  
> following
> exception:
>
> sun.awt.image.ImageFormatException: Unsupported JPEG data precision 12
> at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
> at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
> at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
> at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
> at sun.awt.image.ImageFetcher.run(Unknown Source)
>
> Can anyone help me out with this?
>
> Jp Corkery
> --
> View this message in context: http://www.nabble.com/12-bit- 
> greyscale-JPEG-images-tf3945639.html#a11192494
> Sent from the ImageJ mailing list archive at Nabble.com.
>

Leon Espinosa
[hidden email]

Laboratoire des Rickettsies du Pr. RAOULT
UMR CNRS 6020
Fac. de Medecine de la Timone
27 Bd Jean Moulin
13005 Marseille

tel  04 91 38 55 17
fax 04 91 38 77 72

portable  06 79 25 97 40