Skip to main content

JPEG2000 Image size limitations?

3 replies [Last post]
SY
Offline
Joined: 2006-02-14

Hi,

Does JPEG2000 impose limits on maximum image dimensions? JAI operations that I've encountered in the past have the following limitation:

width*height*numBands <= 2147483647

Does this also apply to JPEG2000 compression using the JAI ImageIO plugin?

Thanks,

Sophia

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Brian Burkhalter

On Tue, 25 Oct 2005, jai-interest@javadesktop.org wrote:

> Hi,
>
> Does JPEG2000 impose limits on maximum image dimensions? JAI operations that I've encountered in the past have the following limitation:
>
> width*height*numBands <= 2147483647

This limitation is not one of JAI, but arises from the limits on the range of
array indices. Strictly speaking, I think the actual constraints are more like
this:

width, height, numBands <= 2147483647 (Integer.MAX_VALUE)

tileWidth*tileHeight*numBands <= 2147483647 (Integer.MAX_VALUE)

In other words the index of the array containing each tile's samples needs to
remain in range.

> Does this also apply to JPEG2000 compression using the JAI ImageIO plugin?

There is this issue with respect to writing

https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=29

but I'm not sure about reading.

Brian

----------------
Brian Burkhalter
Java Multimedia, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Bob Deen

>> Does JPEG2000 impose limits on maximum image dimensions? JAI
>> operations that I've encountered in the past have the following
>> limitation:
>>
>> width*height*numBands <= 2147483647
>
>
> This limitation is not one of JAI, but arises from the limits on the
> range of array indices. Strictly speaking, I think the actual
> constraints are more like this:
>
> width, height, numBands <= 2147483647 (Integer.MAX_VALUE)
>
> tileWidth*tileHeight*numBands <= 2147483647 (Integer.MAX_VALUE)
>
> In other words the index of the array containing each tile's samples
> needs to remain in range.

Yes that's more like it. I have read 5GB images before and done things
to them (a rotate, if I recall correctly, and rescale). Wasn't what I'd
call
speedy by any means, but it worked. The tile size has to fit in the 2GB
limit (preferably much MUCH smaller of course) but the image does not.

Of course your reader (and writer) has to support large images as well...
I don't know if any of the supplied ones do or not.

-Bob Deen @ NASA-JPL Multimission Image Processing Lab
Bob.Deen@jpl.nasa.gov

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Brian Burkhalter

On Tue, 25 Oct 2005, Bob Deen wrote:

> Of course your reader (and writer) has to support large images as well...
> I don't know if any of the supplied ones do or not.

There is no problem that I know of with the TIFF reader/writer provided there
are enough system resources.

Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net