wk 8.2 Flashcards
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
- (JPEG) Joint Photographic Experts Group
- (MPEG) Moving Picture Experts Group / video
- Wavelets
can the compressed image be recovered
Only an approximation of the original image can be recovered, lower quality, but smaller
JPEG Encoding
- Discrete Cosine Transform (DCT)
- DCT: reversible transform & retains all the information
- JPEG and MPEG is obtained by discarding some of DCT components
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