Advertisement

11.28.2008 at 03:22AM PST, ID: 23941863
[x]
Attachment Details

How do I read jpeg-lossless?

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1
Hi,

I want to load an image in jpeg-lossless compressed format.

I downloaded image from:
ftp://figment.csee.usf.edu/pub/DDSM/cases/cancers/cancer_01/case3008/B_3008_1.RIGHT_CC.LJPEG
I based my example on:
http://markmail.org/message/b25kkdx267qcg52c#query:java%20jai%20lossless%20compression+page:1+mid:f37jv4kjglovazkd+state:results

I installed jai and imported jars into eclipse
eclipse->Project->Properties->Java Build Path->Libraries:
jai_codec.jar, jai_core.jar, mlibwrapper_jai.jar

and at the end I used the code:
java.util.Iterator<ImageReader> losslessJPEGReaders = ImageIO.getImageReadersByFormatName("jpeg-lossless");
ImageReader losslessJPEGReader = null;
but:
losslessJPEGReaders.hasNext()
returns false.

could anyone help me?

ps. I`ve digged google and other sites and found something on
http://download.java.net/media/jai-imageio/javadoc/1.1/index.html
like:
"ImageReader and ImageWriter plug-ins are provided for the JPEG image format. These plug-ins are accelerated using native code. If security permission settings disallow loading native code, or if the system property "com.sun.media.imageio.disableCodecLib" is set to "true" at the time of plug-in registration the service provider will deregister itself and the plug-ins will not be available."

maybe it is the problem but I do not know how to repair it.
1:
2:
3:
4:
5:
6:
java.util.Iterator<ImageReader> losslessJPEGReaders = 
    ImageIO.getImageReadersByFormatName("jpeg-lossless");
 
ImageReader losslessJPEGReader = null;
 
if (losslessJPEGReaders.hasNext()) { } else { <I end here> }
 
 
 
Expert Comment by objects:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by grzessio:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Accepted Solution by objects:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by grzessio:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Expert Comment by objects:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by grzessio:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
20081119-EE-VQP-45 - Hierarchy / EE_QW_2_20070628