Contents
1) A colour transform, 2) A 2D discrete cosine transform on 8×8 blocks, 3) A quantization (filtering) stage, 4) Huffman encoding. Finally, a compressed image is returned in the . jpg file format.
What are the basic steps of JPEG compression?
JPEG Compression algorithm has five main basic steps.
- RGB color space to YCbCr color space Conversion.
- Preprocessing for DCT transformation.
- DCT Transformation.
- Co-efficient Quantization.
- Lossless Encoding.
How many basic steps are in JPEG?
There are four basic steps in the algorithm – preprocess, transformation, quantization, encoding. We have already talked about Huffman coding and JPEG uses a more sophisticated version of Huffman coding to perform coding. We will not discuss the advanced coding methods used by JPEG here.