Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6175316
Votes 3
Synopsis JPEG2000 Reader should provide the number of resolution levels present in image.
Category jai:codec_imageio
Reported Against
Release Fixed
State 3-Accepted, request for enhancement
Priority: 4-Low
Related Bugs 6306685
Submit Date 07-OCT-2004
Description
The JAI Image I/O tools JPEG2000 reader should provide the number of resolution levels that are present in the JPEG2000 source image, especially since the resolution level is a user specifiable parameter to the JPEG2000 J2KImageReadParam. It will be useful for the customer to know what the maximum number of levels are, to ensure that they do not ask for a non-existant level when using the J2KImageReadParam.
  xxxxx@xxxxx   10/7/04 00:51 GMT
Work Around
The number of resolution levels present should be able to be determined by actually decoding resolution level 0 and multiplying its width and height by a factor of 2 until these values exceed the values returned by the ImageReader getWidth() and getHeight() methods, respectively. Decoding resolution level 0 should be relatively inexpensive.
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 05-JAN-2005
Michael_Owen
This functionality could be easily added, and would benefit the multi-resolution use of JPEG2000 for large imagery (eg geospatial) who often deal very large images.



PLEASE NOTE: JDK6 is formerly known as Project Mustang