This content has been marked as final. Show 3 replies
Sub: setEncodingRate() method of j2kparam class
Did you mean [J2KImageWriteParam|http://download.java.net/media/jai-imageio/javadoc/1.1/com/sun/media/imageio/plugins/jpeg2000/J2KImageWriteParam.html]? If so, then please type it correctly, rather than make your reader guess.
Preeti19 wrote:Questions in English should end with a question mark '?'. Questions in English in forums should definitely end in a question mark, to help those people who are scanning the text quickly, looking for ways to help. You would not want to make it harder for someone to help, would you?
..i am using setEncodingRate method to encode an image to jpeg2000 but the value is not making any difference in the output image filesize and even the image. Every time the compression ratio (size of raw image file/size of jp2 file) is coming out to be same with different values of encoding rate. And the compression ratio is in thousands( Image of 2000000 bytes is compressed to 707 bytes (with 5 decomposition levels)). How can i get images of different quality.
Plz help me out.Please take the effort to spell words correctly, or to put that a different way, [write well|http://catb.org/~esr/faqs/smart-questions.html#writewell].
..i will be thankful to you.I prefer people put thought/effort into the types of things I mentioned in my reply, than that they promise to be 'thankful'.
Preeti19 wrote:If you try to be accurate in future, that will be far better than any apology.
Yes, it is J2KImageWriteParam class.
Sorry for the mistake.
How to specify the correct values for encoding rate (in setEncodingRate()) so that images with different quality can be achieved?Actually I have no idea. The only time I've used JAI was via Ant, and it did not go into the kind of details needed to answer your question. I just know how to use Google well enough to guess the correct class names of methods. ;)