what is huffman coding
fixed-length code (8 bits) -> variable length code
to represent the pixel values in an image
effect of huffman coding
more frequent pixel values will be assigned shorter-length bits
Common methods of lossy compression
can the compressed image be recovered
Only an approximation of the original image can be recovered, lower quality, but smaller
JPEG Encoding
phases of JPEG
blocked image -> DCT -> Quantisation -> Lossless compression -> compressed image
steps to JPEG Compression
blocked image -> divided into 8x8 pixel blocks, transformed and compressed
DCT -> applied to each block
Quantisation -> to reduce number of bits needed for encoding
Lossless compression -> RLE & Huffman Coding
compressed image