Getting DCT Coefficients from JPEG File using Java ?

Discussion in 'Java' started by Jackson, Dec 2, 2004.

  1. Jackson

    Jackson Guest

    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.

    Thanks!
    -Jackson
     
    Jackson, Dec 2, 2004
    #1
    1. Advertisements

  2. Jackson

    markos

    Joined:
    Feb 12, 2016
    Messages:
    1
    Likes Received:
    0
    It seems that 11 years later, there is still no simple answer to this. The only solution I found was to use JNA to draw the coefficients using the native JPEG library. My code is very crude but can be easily extended. Here: https://github.com/markzampoglou/dct-extraction
     
    markos, Feb 12, 2016
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. walala
    Replies:
    0
    Views:
    9,736
    walala
    Aug 1, 2003
  2. Bob
    Replies:
    1
    Views:
    700
    Jim Lewis
    Sep 18, 2003
  3. jack kilby

    FIR coefficients

    jack kilby, Nov 24, 2003, in forum: VHDL
    Replies:
    1
    Views:
    1,332
    Jacky Renaux
    Nov 28, 2003
  4. Emel
    Replies:
    1
    Views:
    5,812
    Mike Treseler
    Jan 16, 2006
  5. Replies:
    1
    Views:
    3,969
    Victor Bazarov
    Feb 28, 2006
  6. lovaspillando
    Replies:
    0
    Views:
    1,360
    lovaspillando
    Aug 26, 2007
  7. Ivan Alameda Carballo
    Replies:
    0
    Views:
    750
    Ivan Alameda Carballo
    Aug 26, 2007
  8. Robert Hunter
    Replies:
    1
    Views:
    226
    Ian Kelly
    Jul 6, 2013
Loading...