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
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