Skip to main content

installing jai on ubuntu

1 reply [Last post]
tsuresh83
Offline
Joined: 2008-06-27
Points: 0

Hi all,
I have a problem installing jai on ubuntu. I am working on a DICOM viewer and have a need to open compressed DICOM images (usually compressed using lossless JPEG). I am using ImageJ library to accomplish the same. I am able to view normal DICOM images. But when I tried to open compressed DICOM, it complained of 'unable to locate codec'. I figured that out to be related to JAI and installed jai-1_1_3-lib-linux-i586-jre.bin. Though the jre installed, I get the same error again. It is working perfectly on my windows vista machine. The problem is getting that to work on Ubuntu. Kindly help.
Thanks,
Suresh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jxc
Offline
Joined: 2005-02-24
Points: 0

Hi Suresh,

First, I have to say that I am not familiar with ImageJ and its plugins,
so my comment might be wrong.

By following a link on http://rsb.info.nih.gov/ij/plugins/index.html
I got http://ij-plugins.sourceforge.net/ and then
http://ij-plugins.sourceforge.net/plugins/imageio/index.html

This Image IO plugin for IJ seems to be using the JAI codecs but
not the JAI-IMAGEIO reader/writer plugins. The term "JAI Image IO
plugin" used on the last page looks similar to "JAI Image I/O Tools
plugins" for this project (https://jai-imageio.dev.java.net/), but it is
probably not referring to the same thing.

As far as I know, the JAI codecs don't support lossless JPEG. So
if you were indeed using Jerek's Image IO plugin for IJ, that'd explain
why you got the 'unable to locate codec' message.

As for why you could open the same lossless JPEG compressed
DICOM image on your Vista machine, you might be in one of several
possible situations: 1) core ImageJ or the plugins you installed
support lossless JPEG on Windows but not on Linux; 2) you have
JAI-IMAGEIO installed, which supports lossless JPEG when the
native libraries are installed properly, and some IJ plugin makes use
of Java Image I/O plugins; 3) you have more IJ plugins installed on
your Windows machine; 4) ...

You might like to try installing jai_imageio-1_1-lib-linux-i586-jre.bin
on Ubuntu to see if it helps. But be ware of this issue
https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=171

HTH,
-James