
I am new to java and image processing, i want to get the color values as a matrix from the color image for giving input to the compression algorithm by using java. plz provide the java code for the above mentioned process.

Thank you friend. . .
but here if we want to give the input from color image what values will be useful for compression, i mean whether int RGB(0-255) or float(0-1)

hi friend,
The compression value should be float
Read through link
http://docs.oracle.com/javase/6/docs/api/javax/imageio/ImageWriteParam.html#compressionQuality
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.