image compression using jpeg

5 views (last 30 days)
jithin
jithin on 8 Feb 2014
Commented: Deepak Mishra on 8 Sep 2022
  1. does doing dct followed by quantization and idct decompress the image?
  2. does run length encoding(rle) help to compress?
  3. when we save a file as jpeg and open it does it perform both dct and idct or only dct?
  4. how can i check if my image is compressed since both the original and output image are 256x256?
  5. in order to write a program to perform jpeg compression and display the compressed image do i have to use zig zag scanning and rle?

Accepted Answer

Walter Roberson
Walter Roberson on 8 Feb 2014
1. No.
2. Often enough to be useful, but not always.
3. You have not specified what "it" is.
4. In that situation there is no compression.
5. No. If you use lossless jpeg then the algorithm does not use those steps.
Compression involves processing data and creating an output that takes less storage than the original data. Decompression involves taking that lower-storage version and expanding it back to something (close to) the original data. The step you have missed in several of your questions is the "creating an output that takes less storage than the original data". Calculating dct and quantizing it probably does not take less storage -- but you can then take the quantized data and output only parts of it. The less you output the more the compression but the less accurately you can reconstruct the original data.
  13 Comments
jithin
jithin on 2 Mar 2014
i have done rle and used NaN to represent EOB. how can i do arithmetic encoding on the rle encoded sequence
jithin
jithin on 2 Mar 2014
i'd prefer to use the built in function for arithmetic encoding but i cant understand what the arguments must be. my input is rle encoded sequence.also how can i show that an image which is dct transformed, quantized, rle encoded ,arithmetic encoded sequence occupies less bandwidth as compared to the original image

Sign in to comment.

More Answers (1)

jithin
jithin on 17 Feb 2014
i am working on Image Compression Using Intra prediction of H.264 using matlab.. 1.Is compression using intra prediction better than that(compression) using jpeg? 2.How can we prove that compression using H.264 is better than jpeg compression? 3.Could you please provide me the code for run length encoding?
  3 Comments
jithin
jithin on 17 Feb 2014
i meant comparison between intraprediction and jpeg.. How can i prove that intraprediction produces better compression?
Deepak Mishra
Deepak Mishra on 8 Sep 2022
i meant comparison between intraprediction and jpeg.. How can i prove that intraprediction produces better compression? and how can analysis filter cutoff frequency

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!