3.4

3.4 | 5 ratings Rate this file 61 Downloads (last 30 days) File Size: 41.9 KB File ID: #31776
image thumbnail

Image compression based on DCT

by

 

compdct,decompdct,compdct,resize,proba,zigzag,zigzaginv zigzag16,zigzag32,rle,abais

| Watch this File

File Information
Description

compdct.m:
main code to compress an image we only run compdct.m
decompdct.m:
to decompress an image we only run compdct.m
resize.m:
proba.m:
zigzag.m:
zigzag scan for bloc [8 8]
zigzaginv.m:
inverse zigzag scan for bloc [8 8]
zigzag16.m:
zigzag scan for bloc [16 16]
zigzinv16.m:
inverse zigzag scan for bloc [16 16]
zigzag32.m:
zigzag scan for bloc [32 32]
zigzinv32.m:
inverse zigzag scan for bloc [32 32]
rle.m:
Run length encoding
irle.m:
Inverse Run length encoding
abais.m:
reduce value big than 255

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
12 Jan 2014 Said BOUREZG

sabila nur, Thank u for your interest
those instructions :
f=fopen('fichier.dct','w');
fwrite(f,fichier,'ubit8');
fclose(f);

Here I save the image in file "fichier.dct". So no thing passed, and for TC and G u can add any others like MSSIM ....

12 Jan 2014 sabila nur

Hi! Why the step "Save a compressed image in file (*.dct)" is passed?
The end of program only show the value of TC and GC but there is no command to save the image in .dct file

06 Mar 2013 Said BOUREZG

Hi, Dines kumar
Thank you for interesting
q must be 8
and th "threshold" you can take any + value from 0 to +infinity

06 Mar 2013 Dines kumar

what value should i enter for th and q

10 Jul 2012 amouna hmd  
10 Jul 2012 amouna hmd

hi!
I have a question, please help me:
during compression (comptdct.m), what is the value of TH or "seuil" that I must define and why?

02 Mar 2012 shravan

is this only for gray scale images?

11 Feb 2012 en-ahmed aziz

goood

23 Dec 2011 rafik

thank you very much

17 Sep 2011 Said BOUREZG

Hi min min,
Thank you.

12 Sep 2011 Mr Smart  
30 Jul 2011 Said BOUREZG

Hi shuaibur,
Thank you for your rating.

28 Jul 2011 shuaibur  
18 Jun 2011 Said BOUREZG

We use in this code of compression/decompression:
Reading image-->DCT transformation-->Thresholding-->Quantization-->RLE encoding--> Huffman encoding-->Save a compressed image in file (*.dct)
in decompression steps we should open file(*.dct) and fell these steps: Huffman decoding-->RLE decoding--> Quantization inverse-->IDCT transformation-->Open image as Bmp image

Contact us