NET4007: Exam Set #2

0.0(0)
studied byStudied by 18 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/76

flashcard set

Earn XP

Description and Tags

exam Set made from review slides 2

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

77 Terms

1
New cards
What is JPEG?
JPEG (Joint Photographic Experts Group) is a widely used standard for lossy image compression, adopted as an international standard in 1992.
2
New cards
What does JPEG compression utilize?
JPEG employs the Discrete Cosine Transform (DCT) for transform coding and supports adjustable compression ratios.
3
New cards
What are the key steps in JPEG compression?
1. Convert RGB to YUV and subsample color.
2. Apply DCT to 8x8 blocks.
3. Quantize the DCT coefficients.
4. Zig-zag ordering and Run-Length Encoding (RLC).
5. Entropy coding (e.g., Huffman coding).
4
New cards
Why do JPEG images appear blocky at high compression ratios?
The block-based 8x8 DCT leads to isolated block contexts, which can become visually apparent at high compression levels.
5
New cards

What is chroma subsampling in JPEG?

Chroma subsampling (e.g., 4:2:2 or 4:4:4) reduces color resolution while preserving luminance detail, as human vision is less sensitive to color variations.

6
New cards
What are the modes of JPEG?
Sequential Mode, Progressive Mode, Hierarchical Mode, and Lossless Mode.
7
New cards
What is the role of quantization in JPEG?
Quantization reduces precision of less important frequencies to achieve compression, introducing the primary loss in JPEG images.
8
New cards
What are the differences between JPEG and JPEG2000?
JPEG2000 uses wavelet transforms for better rate-distortion tradeoff, supports scalability (resolution and quality), and region-of-interest coding.
9
New cards
What are Color Look-Up Tables (LUTs)?
LUTs store mappings from pixel values to RGB color values, enabling space-efficient image representation in 8-bit color images.
10
New cards
How does an 8-bit image use LUTs?
Each pixel stores an index to a LUT, which contains the RGB color for that pixel index.
11
New cards

What are the storage advantages of Color Look-up Tables (LUTs)?

For a 640x480 8-bit image, LUTs reduce storage to ~300 kB compared to ~921.6 kB for 24-bit images.

12
New cards

How do you decide the number of colors for a LUT?

The number of bits determines the table size: an n-bit LUT can index (2^n) colors. For example, 8-bit LUTs support 256 colors.

13
New cards
What is dithering in low-bit images?
Dithering simulates intermediate colors by spatially blending available LUT colors to minimize visual discrepancies.
14
New cards
What is MPEG?
MPEG (Moving Pictures Experts Group) is a standard for compressing digital video and audio, established in 1988.
15
New cards
What are the key frame types in MPEG compression?
- I-frames: Intra-coded, complete image.
- P-frames: Predicted using past frames.
- B-frames: Bidirectionally predicted using past and future frames.
16
New cards
What is Motion Compensation in MPEG?
Motion Compensation predicts macroblocks in a frame using similar blocks in reference frames, reducing temporal redundancy.
17
New cards
What are the applications of MPEG-1?
MPEG-1 supports CD, VCD, and non-interlaced video at resolutions like 352x240 (NTSC) and bit rates up to 1.5 Mbps.
18
New cards
How does MPEG-2 enhance MPEG-1?
MPEG-2 supports interlaced video, higher resolutions, and scalable coding for applications like HDTV and DVDs.
19
New cards
What is MPEG-4?
MPEG-4 introduces object-based coding, enabling interactive scenes and higher compression ratios for digital composition and manipulation.
20
New cards
What are the MPEG-2 scalability types?
SNR, spatial, temporal, and hybrid scalability.
21
New cards

What is the role of chroma subsampling in MPEG?

MPEG employs chroma subsampling (e.g., 4:2:0) to increase color quality

22
New cards
How does MPEG-4 VOP-based coding work?
MPEG-4 encodes Video Object Planes (VOPs) using Motion Compensation, including texture and shape information.
23
New cards
What is the significance of Sprite Coding in MPEG-4?
Sprite Coding transmits static backgrounds as a panorama, reducing redundancy and bandwidth needs.
24
New cards
What distinguishes MPEG-7?
MPEG-7 focuses on content description for audiovisual retrieval, using descriptors, schemes, and XML-based metadata.
25
New cards
What is MPEG-21?
MPEG-21 defines a framework for multimedia content delivery, emphasizing digital items and interoperability across distribution channels.
26
New cards
Light is an electromagnetic wave. What determines its color?
Its wavelength content.
27
New cards
What color sensation do short wavelengths produce?
Blue sensation.
28
New cards
How does the eye function similar to a camera?
The lens focuses an image onto the retina.
29
New cards
What are the three kinds of cones in the human retina sensitive to?
Red, green, and blue light.
30
New cards
What is the main function of rods in the retina?
Vision in low light levels; produce grayscale images.
31
New cards
Why is blue sensitivity smaller than red or green in human vision?
Blue sensitivity evolved later.
32
New cards
What does the CIE Chromaticity Diagram represent?
A mapping of color-matching functions to chromaticities.
33
New cards
What are the primary colors in subtractive color models like CMY?
Cyan, magenta, yellow.
34
New cards
What does the CMYK system add to CMY to create sharper colors?
Black (K) component.
35
New cards
What color model is used in North American and Japanese TV broadcasting?
YIQ color model.
36
New cards
What does the YUV color model separate in video coding?
Luminance and chrominance.
37
New cards
How many possible colors are represented in a 24-bit image?
16,777,216 colors.
38
New cards
What is the storage size of a 640x480 24-bit color image without compression?
921.6 kB.
39
New cards
What technique does JPEG use to achieve image compression?
Discrete Cosine Transform (DCT).
40
New cards
What does the DCT decompose in an image?
DC and AC components of the signal.
41
New cards
Why does JPEG use quantization in compression?
To reduce spatial redundancy.
42
New cards
What is the main cause of loss in JPEG compression?
Quantization of DCT coefficients.
43
New cards
What is the purpose of Huffman coding in JPEG?
To encode the quantized coefficients efficiently.
44
New cards
What method is used in video compression to reduce redundancy between frames?
Motion Compensation (MC).
45
New cards
What are I-frames in video compression?
Independent images using intra-frame coding.
46
New cards
What is the difference between I-frames and P-frames in H.261?
P-frames use predictive coding from previous frames.
47
New cards
What is a macroblock in video compression?
A block of pixels used as a basic unit for processing.
48
New cards
What kind of motion vectors does H.263 support?
Half-pixel precision motion vectors.
49
New cards
What does MPEG stand for?
Moving Pictures Experts Group.
50
New cards
What is the bit rate range for MPEG-1?
Up to 1.5 Mbps.
51
New cards
What is a key difference between MPEG-1 and MPEG-2?
MPEG-2 supports higher-quality video and interlaced video.
52
New cards
What is the purpose of chroma subsampling in video compression?
To reduce data for color components.
53
New cards
What scalability types does MPEG-2 support?
SNR, spatial, temporal, and hybrid scalability.
54
New cards
What is a significant feature of MPEG-4 compared to its predecessors?
Object-based coding for audiovisual composition.
55
New cards
What is a sprite in MPEG-4?
A movable graphic image within a larger scene.
56
New cards

Explain briefly the basic idea behind Information Theory. (5 points) Why is it needed in multimedia compression?

Information theory is an organizing strategy for data. It allows us to store and transmit large amounts of data like videos and music files in a much smaller form, saving space and bandwidth.

57
New cards

Calculate the entropy of “GOOGLE”. (20 points)

Unique Characters and Their Frequencies:

G: 2

O: 2

L: 1

E: 1

Total Characters: 6

Probabilities of Each Character:

P(G) = 2/6 = 1/3

P(O) = 2/6 = 1/3

P(L) = 1/6

P(E) = 1/6

Entropy Formula:

Entropy (H(S)) = - Σ P(x) * log2(P(x))

H(S) = -(1/3 log2(1/3) + 1/3 log2(1/3) + 1/6 log2(1/6) + 1/6 log2(1/6))

H(S) = -(2/3 log2(3) + 1/3 log2(6))

H(S) ≈ -(2/3 1.585 + 1/3 2.585)

H(S) ≈ -1.917

H(S) ≈ 1.917 bits/character

58
New cards

Encode “GOOGLE” using Huffman coding algorithm.

Frequency Table:

G: 2

O: 2

L: 1

E: 1

Huffman Code:

101011001000

Average Code Length:

(1*2 + 2*2 + 1*3 + 1*3)/6 = 2 bits/character

Close to the 1.917 bits/character for entorpy

<p>Frequency Table:</p><p>G: 2</p><p>O: 2</p><p>L: 1</p><p>E: 1</p><p></p><p>Huffman Code:</p><p>101011001000</p><p></p><p>Average Code Length:</p><p>(1*2 + 2*2 + 1*3 + 1*3)/6 = 2 bits/character</p><p>Close to the 1.917 bits/character for entorpy</p>
59
New cards
<p>Refer to the following exhibit. On the basis of the two scenarios, which statement is true about the impact of the VoIP packet size and rate on network performance? (10 points)<br><br>(a) The first scenario introduces smaller IP overhead and lower bandwidth consumption but will increase the delay for the voice packets. <br>(b) The first scenario introduces additional IP overhead, which results in higher bandwidth consumption needed to transport the voice packets. <br>(c) The first scenario introduces the VoIP packets transportation at lower packet rate, which results in higher bandwidth consumption to transport the voice packets. <br>(d) The second scenario introduces additional IP overhead, which results in higher bandwidth consumption needed to transport the voice packets.</p>

Refer to the following exhibit. On the basis of the two scenarios, which statement is true about the impact of the VoIP packet size and rate on network performance? (10 points)

(a) The first scenario introduces smaller IP overhead and lower bandwidth consumption but will increase the delay for the voice packets.
(b) The first scenario introduces additional IP overhead, which results in higher bandwidth consumption needed to transport the voice packets.
(c) The first scenario introduces the VoIP packets transportation at lower packet rate, which results in higher bandwidth consumption to transport the voice packets.
(d) The second scenario introduces additional IP overhead, which results in higher bandwidth consumption needed to transport the voice packets.

(b) The first scenario introduces additional IP overhead, which results in higher bandwidth consumption needed to transport the voice packets.

60
New cards

Suppose we have available 24 bits per pixel for a color image. However, we notice that humans are more sensitive to R and G than to B – in fact, 1.5 times more sensitive to R or G than B. How could we best make use of the bits available? (15 points)

Since humans are 1.5 times more sensitive to R and G than to B, so we assign that proportional weight of 1.5 to R and G and just 1 to B, summing the total weights to 4.

Using these weights the 24 bits are allocated as (1.5 / 4) * 24 = 9 bits to R and G each, and (1 / 4) * 24 = 6 bits to B.

61
New cards

If the block size of a 2D DCT transform is 8 x 8, and we use only the DC components to create a thumbnail image, what fraction of the original pixels would we be using? (15 points)

Each 8x8 block, which without transforming will contain 64 pixels, contributes to just one DC component, representing the average intensity of the block. This means that for every 64 pixels in the original image, only 1 value is retained. This means that the fraction of the original pixels used is 1/64, or approximately 1.56%.

62
New cards

Identify two differences between Fourier transform and Wavelet transform. (15 points)

Fourier transform breaks down a signal into its different frequency components using infinite sine and cosine waves

Wavelet transform uses finite, discrete wavelets that can adapt their scale, allowing it to provide spatial and frequency information.

63
New cards

Your task is to create a new image-compression standard based on JPEG, for use with images that will be viewed by an alien species. What part of the JPEG workflow would you likely have to change? (15 points)

the colour space transformation and quantization steps are tailored to human vision. For an Alien it would need to be tailored to their visual perception

64
New cards
What is the RGB color model?
RGB is an additive color model where colors are created by combining red, green, and blue light in varying intensities.
65
New cards
What is the CMY color model?
CMY (Cyan, Magenta, Yellow) is a subtractive model used in printing; colors are produced by subtracting red, green, or blue from white light.
66
New cards
What is YUV color coding used for?
YUV separates luminance (Y) from chrominance (U and V) for efficient color representation in video coding.
67
New cards
How does the CMYK model differ from CMY?
The CMYK model introduces black (K) as a separate channel to improve color precision and reduce ink usage in printing.
68
New cards
What is the main purpose of dithering?
Dithering simulates intermediate shades in low-bit-depth images by spatially mixing nearby color values.
69
New cards
How does lossless compression work for images?
Lossless compression removes redundancy in image data without discarding information, e.g., through Huffman coding or Run-Length Coding (RLC).
70
New cards
What is temporal redundancy in video compression?
Temporal redundancy occurs when consecutive frames share similar content, allowing compression by encoding differences rather than full frames.
71
New cards
How does motion compensation reduce redundancy?
Motion compensation predicts blocks in a frame using similar blocks in reference frames, reducing data to encode motion differences.
72
New cards
What are the main steps of video compression using Motion Compensation?
1. Motion Estimation.
2. Prediction using motion vectors (MC-based).
3. Derivation of the prediction error (the difference).
73
New cards
What is interlaced video, and how is it supported in MPEG-2?
Interlaced video splits each frame into two fields (top and bottom), improving motion representation for TV broadcasts.
74
New cards
What is the role of the Discrete Cosine Transform (DCT) in compression?
DCT decorrelates image data, separating high-frequency components (details) from low-frequency components (base colors) for efficient quantization.
75
New cards
What is the Karhunen-Loeve Transform (KLT)?
KLT is an optimal decorrelation method for image data, transforming input into less correlated components for efficient coding.
76
New cards
How does the Wavelet Transform differ from DCT?
Wavelet Transform provides better resolution for non-stationary signals, analyzing data at different scales for compression.
77
New cards
What is the purpose of hierarchical motion estimation?
It reduces computational cost by estimating motion vectors at lower resolutions before refining at higher resolutions.