Skip to main content

J2KImageReadParam Question

3 replies [Last post]
tranan
Offline
Joined: 2009-06-23
Points: 0

Hi,

I have an jp2 file that is 23000x19000 pixels needless to say I will have to read in different types of resolutions.

In the viewer, when it is completely zoomed out i want the full image at a lower res as the user zooms in a want a chip of the image at a higher image and so forth.

The question is to do is i will have to play around with the J2KImageReadParam parameters.

It is unclear what the resolution and decoding rate parameters mean. The JavaDoc doesnt really help.
Can you guys shed some light on this or is there some documentation somewhere that i can read on.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Nidel, Mike

I can only tell you a little about the JAI ImageIO tools implementation.
The decodingRate corresponds to quality layers, but I don't know how exactly
it corresponds. The resolution corresponds to exactly that. So you can
decode a half-size (linear) version of your image that will be 11,500x8500
pixels. I believe the right parameter will be setResolution(1) although it
might be 2. Try it out and see.

In my experience, the provided plugin didn't give good performance for
large images like yours (and mine) and even died altogether in some cases.
I hope you can get it to work well, please let us know if you do.

Mike

> -----Original Message-----
> From: jai-imageio@javadesktop.org [mailto:jai-imageio@javadesktop.org]
> Sent: Tuesday, June 23, 2009 4:32 PM
> To: interest@jai-imageio.dev.java.net
> Subject: [JAI-IMAGEIO] J2KImageReadParam Question
>
> Hi,
>
> I have an jp2 file that is 23000x19000 pixels needless to say I will
> have to read in different types of resolutions.
>
> In the viewer, when it is completely zoomed out i want the full image
> at a lower res as the user zooms in a want a chip of the image at a
> higher image and so forth.
>
> The question is to do is i will have to play around with the
> J2KImageReadParam parameters.
>
> It is unclear what the resolution and decoding rate parameters mean.
> The JavaDoc doesnt really help.
> Can you guys shed some light on this or is there some documentation
> somewhere that i can read on.
>
> Thanks
> [Message sent by forum member 'tranan' (tranan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=352556
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

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

tranan
Offline
Joined: 2009-06-23
Points: 0

Thanks for the reply.....

I was playing around with it yesterday and i too noticed that performance is horrible. If i set the resolution to be 0 which is the smallest supported resolution it takes about 30 secs to read out a 24x20 image.

Performance will be a huge factor in my project. Is there any other alternative to using the Java Plugins?

I know Java plugin uses JJ2000. Can the same be said for JJ2000 performance of large imagery? Also There is a native plugin does that leverage JasPer or does it leverage JJ2000 as well?

Thanks.

Simone Giannecchini

If you are experiencing performance problems with the jpeg2k plugins
of imageio you might want to give a try to the imageio-ext jp2k
plugins. You can use mrsid, ecw or kakadu (if you have a license
available).
See:
https://imageio-ext.dev.java.net/

Regards,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Wed, Jun 24, 2009 at 2:52 PM, wrote:
> Thanks for the reply.....
>
> I was playing around with it yesterday and i too noticed that performance is horrible.  If i set the resolution to be 0 which is the smallest supported resolution it takes about 30 secs to read out a 24x20 image.
>
> Performance will be a huge factor in my project.  Is there any other alternative to using the Java Plugins?
>
> I know Java plugin uses JJ2000.  Can the same be said for JJ2000 performance of large imagery?  Also There is a native plugin does that leverage JasPer or does it leverage JJ2000 as well?
>
> Thanks.
> [Message sent by forum member 'tranan' (tranan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=352716
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

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