Multimedia Computing · Unit 3 · 5 hrs
Images and Graphics
Exam-focused notes for Images and Graphics (Multimedia Computing, CSC330): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
Images and Graphics in short
An image is a spatial representation of a real or virtual object in a two- or three-dimensional scene. This chapter covers how an image is represented as digital data, the formats used to capture, store and exchange that data, and how images are synthesised, analysed and transmitted.
What this unit covers
- Digital Image Representation
- Image and graphics Format
- Image Synthesis, analysis and Transmission
Digital Image Representation
2081 · 10 marks
Discuss the different types of color models and compare between them with applications.[10]
2081 · 5 marks
What do you mean by color dithering technique? Explain. [5]
Show solved answerHide answer
Color Dithering Technique
Definition
Color dithering is a technique used in computer graphics and multimedia to simulate a wider range of colors than are actually available in a given color palette or display system. It works by arranging pixels of available colors in specific patterns so that the human eye perceives an intermediate or blended color that does not physically exist in the palette.
Why Dithering is Needed
Modern displays and image formats may be limited in the number of colors they can represent (e.g., an 8-bit display supports only 256 colors). When a true-color image is reduced to a limited palette, many colors cannot be represented exactly. Dithering solves this problem by approximating missing colors using combinations of available ones.
How Dithering Works
The basic principle is:
If two colors A and B are placed close together in a pattern, the human visual system blends them perceptually into an intermediate color C.
For example, alternating black and white pixels in a checkerboard pattern produces the perception of gray.
Types / Methods of Dithering
1. Ordered Dithering (Bayer Dithering)
- Uses a threshold matrix (Bayer matrix) to decide whether a pixel should be rounded up or down to the nearest available color.
- The threshold varies spatially in a regular pattern.
- Fast and simple to implement.
Example (2x2 Bayer Matrix):
| 1 3 |
| 4 2 |
Each pixel's intensity is compared against the corresponding threshold value. If the intensity exceeds the threshold, the pixel is set to the higher color; otherwise, the lower color.
2. Error Diffusion Dithering (Floyd-Steinberg)
- When a pixel is approximated to the nearest available color, the quantization error (difference between actual and approximated color) is distributed to neighboring pixels.
- Produces more natural-looking results than ordered dithering.
Error distribution pattern (Floyd-Steinberg):
[current] 7/16
3/16 5/16 1/16
- 7/16 of the error goes to the right neighbor
- 3/16 to the lower-left, 5/16 directly below, 1/16 to the lower-right
3. Random Dithering
- A random threshold is used for each pixel instead of a fixed matrix.
- Simple but produces a noisy appearance.
Advantages of Dithering
| Advantage | Description |
|---|---|
| Simulates more colors | Achieves smooth gradients with limited palette |
| Reduces banding | Eliminates harsh color boundaries |
| Improves visual quality | Produces more natural-looking images |
Disadvantages of Dithering
| Disadvantage | Description |
|---|---|
| Introduces noise/patterns | Visible dot patterns may appear |
| Increases file size | More varied pixel values reduce compression efficiency |
| Computationally expensive | Error diffusion methods require extra processing |
Summary
Color dithering is an essential technique in multimedia and computer graphics that compensates for limited color depth by spatially mixing available colors to simulate unavailable ones. It exploits the human eye's tendency to blend closely spaced colors, thereby improving the perceived quality of images displayed on systems with restricted color palettes.
2080 · 5 marks
Explain the digital image representation with example. [5]
Image and graphics Format
2081 · 5 marks
Explain the image and graphics format with example. [5]
Make Unit 3 stick
Practice CSC330 with flashcards & quizzes