Image compression Flashcards
What is 100 photo quality?
Perfect image quality with no loss of information
When the compression ratio is high…
The image ratio is low
What is non-lossy compression?
- Non-lossy (lossless) compression – original image can be recovered exactly from compressed image file.
- E.g. Portable Network Graphics (.png)
What is lossy compression?
- Lossy compression – Information lost when file is compressed. Therefore only an approximation to the original image is possible.
- Eg. Joint Experts Photographic Group JPEG (.jpg)
What are the 3 types of data redundancy?
- Coding redundancy
- Inter-pixel redundancy
- Psycho-visual redundancy
What causes coding redundancy?
It is caused by sub-optimal code words for symbol encoding - a symbol typically (but not exclusively) represents grey-level.
What causes inter-pixel redundancy?
Due to grey-level correlations between neighbouring pixels.
What is psycho-visual redundancy?
Information contained within an image that is superfluous to the interpretation or aesthetics of an image.
What does clarity depend on?
- Spatial frequency
- Amplitude
What is the compression ratio?
A measure of the the compactness of a compressed image file
How is compression ratio (Cr) defined?
CR = b1 / b2
b1 = the number of bits in the original image
b2 = the number of bits in the encoded image
What are the steps from A to the compressed image?
- Transformation
- Quantization
- Symbol encoder
What are the steps from compressed image to A?
- Symbol decoder
- Dequantizer
- Inverse transformation
What does symbol refer to?
Symbol is a general term that can refer to pixel values or transformation coefficient values.
What happens in the transformation step?
- Converts the input image A into a format that is better suited to encoding.
- This transforms the pixels into coefficients.
- For most natural images a significant number of transformation coefficients have negligible magnitude and can be discarded.
- The remaining coefficients can be coarsely quantized – thereby reducing the number of bits required to encode them.