Skip to main content

[JAI-IMAGEIO] JPEG2K Plugin

3 replies [Last post]
Anonymous

Hi list,
I am having some troubles with jpeg 2000 support in JAI.
I am new to JPEG2000 but I have quite some experience with JAI and
ImageIO. Let me drop here some of the issues I noticed in order to
see if someone else experienced/solved them.

1>Pure java plugin is VERY slow for large images, whether they are tiled or not.
2>Native plugin (based on JAPSER if I recall) sometimes makes JVM crash.
3>Using the code for picking up the needed resolution level from an
image encoded with multiple levels leads to different results whether
or not using the native plugin.
The code I am using is as follows:

final ParameterBlockJAI pbj = new ParameterBlockJAI("ImageRead");
pbj.setParameter("Input", iis);
final J2KImageReadParamJava readParams = new J2KImageReadParamJava();
readParams.setResolution(3);
pbj.setParameter("ReadParam", readParams);
pbj.setParameter("Reader", reader);
RenderedOp image = JAI.create("ImageRead", pbj);

Curiously enough it seems that the native plugin translates the
setResolution params as if I would be asking for a low quality layer
insted for a reduced resolution version of the image.

4>(This might be me who needs more knowledge on JPEG2000) When using
the code above with pure java reader I get an image as big as the
original one with only a subpart of it containing real code.

I hope anyone can give me some directions/hints because I am wasting
too much time.

Simone.

--
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Simone Giannecchini
Software Engineer
Freelance Consultant

http://simboss.wordpress.com/

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

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

Reply viewing options

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

On Sun, 30 Apr 2006, Simone Giannecchini wrote:

> I am having some troubles with jpeg 2000 support in JAI.
> I am new to JPEG2000 but I have quite some experience with JAI and
> ImageIO. Let me drop here some of the issues I noticed in order to
> see if someone else experienced/solved them.
>
> 1>Pure java plugin is VERY slow for large images, whether they are tiled or
> not.
> 2>Native plugin (based on JAPSER if I recall) sometimes makes JVM crash.

That might be the same as this:

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

Please vote for this issue.

> 3>Using the code for picking up the needed resolution level from an
> image encoded with multiple levels leads to different results whether
> or not using the native plugin.

Might be this bug:

http://developer.java.sun.com/developer/bugParade/bugs/6175702.html

Again, please vote.

> The code I am using is as follows:
>
> final ParameterBlockJAI pbj = new ParameterBlockJAI("ImageRead");
> pbj.setParameter("Input", iis);
> final J2KImageReadParamJava readParams = new J2KImageReadParamJava();
> readParams.setResolution(3);
> pbj.setParameter("ReadParam", readParams);
> pbj.setParameter("Reader", reader);
> RenderedOp image = JAI.create("ImageRead", pbj);
>
> Curiously enough it seems that the native plugin translates the
> setResolution params as if I would be asking for a low quality layer
> insted for a reduced resolution version of the image.
>
> 4>(This might be me who needs more knowledge on JPEG2000) When using
> the code above with pure java reader I get an image as big as the
> original one with only a subpart of it containing real code.

Could be this one?

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5089981

> I hope anyone can give me some directions/hints because I am wasting
> too much time.

I think (one of) the theme(s) of the next JAI-Image I/O version needs to be
"JPEG 2000 improvements".

Brian

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

scyudits
Offline
Joined: 2005-07-15

How do I vote for JAI Image I/O to support JPEG2000 with unlimited resolution levels, depending on the image size (not just 5)? Is there an issue for that already, and if not, how do I file one?

Brian Burkhalter

I don't see that particular issue on file.

If you are a project member you may file one at

https://jai-imageio-core.dev.java.net/servlets/ProjectIssues

On Fri, 5 May 2006, jai-imageio@javadesktop.org wrote:

> How do I vote for JAI Image I/O to support JPEG2000 with unlimited resolution levels, depending on the image size (not just 5)? Is there an issue for that already, and if not, how do I file one?

----------------
Brian Burkhalter
Java Media, 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-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net