Getting DCT Coefficients from JPEG File using Java ?



I'm currently doing some development in Java and I need to be able to
extract the DCT Coefficients from a JPG file.

I've done some research and found that Java does include a JPEG Decoder
(com.sun.image.codec.jpeg.*), but I'm not sure how I could leverage
this to grab the DCT Coefficients.

It is my understanding that I would have to first, for each 8x8 block,
decode the huffman values, decode the RLE values, decode the DPCM
values, and undo zig-zag coding. I'm just not sure how I could get
this concept into my Java program.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question