I need to write Java Applet code for 2-D DCT (Discrete cosine transform) something like "dctdemo" in Matlab.
I need to have one original image (image for compressing ) , one result image (compresed image). When i click button i want to displayed result image on the screen from original (compressed with selected quality ex. from 1-100).
How can I convert picture pixels to matrix array,calculate them with formula and draw array in to result picture??? or the procedure is different??
So please give me java applet code for this or code for converting pixels, also i need code for drawing pictures from matrix array.