[JAI] Reading a tiled JPEG2000 image with native reader
I encountered a problem while reading a tiled JPEG2000 image with the native version of the corresponding image reader. The java-only version of the reader works fine, although it is very slow.
First I read the image in with a Image Read -operation and then I (just for testing) populate all the tiles and get this exception: "java.lang.IllegalArgumentException: The destination or source region is empty." The whole error message can be found here: http://www.uta.fi/~vt72556/imt/result.txt. I get the same error when, for example, I first get tile (0,0) and after that try to get tile (0,1). If I just get one of them, no error occurs.
I've tested this with two different setups, one being a WinXP SP2 and the other Debian Linux and both had JDK 1.5.0_03 with JAI 1.1.3-alpha and JAI Image I/O 1.1-alpha. They both gave me the same result.
My test image is tiled and written with Java/JAI also and everything seems to be in order when I view it with different programs (e.g. kdu_show). The image can be found here: http://www.uta.fi/~vt72556/imt/test.jp2.
I tried to search if there is a bug filed, but didn't find. So, perhaps the error is in my test image?
University of Tampere, Finland
Dep. of Computer Sciences & Institute of Medical Technology