Docsity

An assignment of image compression, Assignments of Digital Image Processing

Toggle sidebar
bg1
1
!
Digital!Image!Processing!
Assignment on Image Compression
!
Dr. Kiran TALELE
!
Section-1!:!Compression!Fundamentals!
!
Multiple!Choice!Questions(MCQ)!
!
Q1.
$
(MCQ)$
Which of the following statements is NOT true about data compression?
A. Compression reduces storage requirements
B. Compression always reduces transmission time
C. Compression removes redundant information
D. Compression may introduce distortion in some cases
!
!
Q2.
$
(MCQ)$
Which metric is most appropriate to measure perceptual quality in lossy image
compression?
A. Compression Ratio
B. Bit Rate
C. Mean Square Error (MSE)
D. Structural Similarity Index (SSIM)
!
!
Q3.$(MCQ)$
Which of the following is a correct comparison?
A. Lossless compression achieves higher compression ratios than lossy
B. Lossy compression preserves all original data exactly
C. Lossless compression is reversible, lossy is not
D. Lossy compression is always preferred for medical imaging
!
Q4.
!
(MCQ)!
Which type of redundancy is exploited when neighboring pixels have similar
intensity values?
$
A. Coding redundancy
B. Interpixel redundancy
C. Psychovisual redundancy
D. Temporal redundancy
!
!
Q5.$(MCQ)$
A compression system produces a high compression ratio but poor visual quality.
This indicates:
A. Low redundancy removal
B. High information preservation
C. Excessive removal of psychovisual redundancy
D. Overuse of lossless techniques
!
!
Contradiction!MCQs!!!
!
Q6.
(MCQ)$
Compression Fundamentals
Statement-1: Data compression reduces the number of bits required to represent information.
Statement-2: Compression always guarantees faster data transmission.
A. Both statements are true
B. Both statements are false
C. Statement-1 is true, Statement-2 is false
D. Statement-1 is false, Statement-2 is true
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download An assignment of image compression and more Assignments Digital Image Processing in PDF only on Docsity!

Assignment on Image Compression

Dr. Kiran TALELE

Section- 1 : Compression Fundamentals

Multiple Choice Questions(MCQ)

Q1. (MCQ) Which of the following statements is NOT true about data compression? A. Compression reduces storage requirements B. Compression always reduces transmission time C. Compression removes redundant information D. Compression may introduce distortion in some cases Q2. (MCQ) Which metric is most appropriate to measure perceptual quality in lossy image compression? A. Compression Ratio B. Bit Rate C. Mean Square Error (MSE) D. Structural Similarity Index (SSIM) Q3. (MCQ) Which of the following is a correct comparison? A. Lossless compression achieves higher compression ratios than lossy B. Lossy compression preserves all original data exactly C. Lossless compression is reversible, lossy is not D. Lossy compression is always preferred for medical imaging

Q 4. (MCQ) Which type of redundancy is exploited when neighboring pixels have similar

intensity values? A. Coding redundancy B. Interpixel redundancy C. Psychovisual redundancy D. Temporal redundancy Q 5. (MCQ) A compression system produces a high compression ratio but poor visual quality. This indicates: A. Low redundancy removal B. High information preservation C. Excessive removal of psychovisual redundancy D. Overuse of lossless techniques

Contradiction MCQs

Q 6. (MCQ) Compression Fundamentals

Statement-1: Data compression reduces the number of bits required to represent information. Statement-2: Compression always guarantees faster data transmission. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Assignment on Image Compression

Dr. Kiran TALELE

Q 7. (MCQ) Lossy vs Lossless

Statement-1: Lossless compression techniques allow exact reconstruction of the original data. Statement-2: Lossy compression techniques always remove only psychovisually irrelevant information. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Q 8. (MCQ) Evaluation Criteria

Statement-1: A lower MSE always implies higher perceptual image quality. Statement-2: SSIM considers structural information and human visual perception. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Q 9. (MCQ)^ Redundancy

Statement-1: Interpixel redundancy arises due to correlation between neighboring pixels. Statement-2: Coding redundancy exists because fixed-length codes are always optimal. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Q 10. (MCQ) Compression Trade-off

Statement-1: Increasing compression ratio in lossy compression may reduce image quality. Statement-2: Higher compression ratios imply that less information is discarded. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Multiple Select Questions (MSQ) Note: For MSQs, one or more options may be correct

Q 11. (MSQ) (^) Which of the following statements about data compression are TRUE? A. Compression reduces storage requirements B. Compression always guarantees faster transmission C. Compression removes redundancy from data D. Compression can be either lossless or lossy Q 12. (MSQ) Which of the following are correct? A. Compression ratio = Original size / Compressed size B. Higher compression ratio always implies better quality C. Bit rate is inversely related to compression efficiency D. Reducing bit rate always improves image quality

Assignment on Image Compression

Dr. Kiran TALELE

Section- 2 : Lossless Coding

Multiple Choice Questions(MCQ) Q 1. (MCQ) In Huffman coding, if all symbols have equal probability, the resulting code is: A. Completely random B. Variable-length C. Fixed-length D. Non-prefix Q 2. (MCQ) (^) Arithmetic coding represents a sequence of symbols as: A. A binary tree B. A fixed-length codeword C. A single fractional number in [0,1) D. A sequence of run-length pairs Q 3. (MCQ) Run-Length Encoding is most efficient when: A. Data is highly random B. Data contains long runs of repeated symbols C. Symbols are uniformly distributed D. Data is already compressed Q 4. (MCQ) Which of the following is a limitation of RLE? A. Cannot represent binary data B. Inefficient for data with frequent value changes C. Always increases compression ratio D. Requires probability estimation Q 5. (MCQ) DPCM primarily exploits: A. Coding redundancy B. Interpixel (spatial) redundancy C. Psychovisual redundancy D. Temporal redundancy only Q 6. (MCQ) If the predictor in DPCM is perfect, the prediction error becomes: A. Maximum B. Zero C. Random D. Infinite Q 7. (MCQ) Which technique encodes an entire message as a single entity rather than symbol-by- symbol? A. Huffman Coding B. Run-Length Encoding C. Arithmetic Coding D. DPCM

Assignment on Image Compression

Dr. Kiran TALELE Q 8. (MCQ) Which combination correctly matches technique and redundancy exploited? A. Huffman โ€“ Interpixel redundancy B. RLE โ€“ Coding redundancy C. DPCM โ€“ Interpixel redundancy D. Arithmetic Coding โ€“ Psychovisual redundancy

Contradiction MCQs

Q 9. (MCQ) Huffman Coding Statement-1: Huffman coding always produces the minimum possible average code length for a given symbol set. Statement-2: Huffman coding can assign fractional bit lengths to symbols. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true Q 10. (MCQ) Arithmetic Coding Statement-1: Arithmetic coding encodes an entire message into a single number. Statement-2: Arithmetic coding assigns a unique fixed-length codeword to each symbol. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true Q 11. (MCQ) Run-Length Encoding (RLE) Statement-1: RLE is effective for compressing images with large uniform regions. Statement-2: RLE always reduces the size of any input data. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true Q 12. (MCQ) DPCM Statement-1: DPCM reduces redundancy by encoding differences between adjacent samples. Statement-2: DPCM eliminates all redundancy present in the signal. A. Both statements are true B. Both statements are false C. Statement-1 is true, Statement-2 is false D. Statement-1 is false, Statement-2 is true

Assignment on Image Compression

Dr. Kiran TALELE

Section- 3 : Lossy Compression

Multiple Choice Questions(MCQ)

Q1. (MCQ) In Vector Quantization, the codebook represents: A. Set of all possible input vectors B. Set of representative vectors used for encoding C. Set of compressed bitstreams D. Set of prediction errors Q 2. (MCQ) Which of the following affects the performance of VQ the most? A. Block size and codebook design B. Only image resolution C. Only transmission bandwidth D. Only quantization step size Q 3. (MCQ) Which step in JPEG is primarily responsible for lossy compression? A. Huffman coding B. Discrete Cosine Transform (DCT) C. Quantization D. Run-Length Encoding Q 4. (MCQ) Which sequence correctly represents the JPEG compression process? A. Quantization โ†’ DCT โ†’ Entropy Coding B. DCT โ†’ Quantization โ†’ Entropy Coding C. Entropy Coding โ†’ DCT โ†’ Quantization D. DCT โ†’ Entropy Coding โ†’ Quantization Q 5. (MCQ) Improved Gray Scale (IGS) coding is primarily used to: A. Remove spatial redundancy B. Reduce contouring effects in quantized images C. Perform entropy coding D. Replace transform coding

Contradiction MCQs

Q 6. (Vector Quantization โ€“ Codebook Design)

Statement I: In VQ, the Lindeโ€“Buzoโ€“Gray (LBG) algorithm minimizes average distortion iteratively. Statement II: The codebook size in VQ has no effect on compression ratio. Options: A. Both statements are true B. Both statements are false C. Statement I is true, Statement II is false D. Statement I is false, Statement II is true

Assignment on Image Compression

Dr. Kiran TALELE

Q 7. (JPEG โ€“ Transform & Compression)

Statement I: JPEG uses Discrete Cosine Transform (DCT) to decorrelate image data. Statement II: Quantization in JPEG is a lossless process. Statement III: Zig-zag scanning helps in grouping low-frequency coefficients. Options: A. I and II are true B. I and III are true C. II and III are true D. All are true

Q 8. (IGS Coding โ€“ Bit Allocation)

Statement I: Improved Gray Scale (IGS) coding reduces contouring artifacts in images. Statement II: IGS coding increases visible quantization noise compared to uniform quantization. Options: A. Both true B. Both false C. I true, II false D. I false, II true

Q 9. (VQ vs JPEG โ€“ Compression Behavior)

Statement I: VQ typically provides fixed-rate compression once the codebook is defined. Statement II: JPEG compression ratio depends on quantization tables. Statement III: VQ always preserves edges better than JPEG. Options: A. I and II true B. II and III true C. I and III true D. All true

Q 10. (IGS & JPEG โ€“ Perceptual Effects)

Statement I: IGS coding introduces pseudo-random noise to reduce banding effects. Statement II: JPEG blocking artifacts arise mainly due to block-wise DCT processing. Statement III: Increasing JPEG quality factor increases compression ratio. Options: A. I and II true B. II and III true C. I and III true D. All true

Multiple Select Questions (MSQ)

Q 11. (MSQ) Which of the following statements about VQ are correct? A. VQ maps image blocks to nearest codewords in a codebook B. Increasing codebook size improves reconstruction quality C. VQ always results in variable bit rate compression D. Codebook design impacts both distortion and compression ratio

Assignment on Image Compression

Dr. Kiran TALELE

Section- 4 : Numerical Questions

Q1. An image of size 1024 ร— 1024 pixels with 8 bits/pixel is compressed using a lossless technique to 2 MB. Calculate the compression ratio. Q2. A signal originally sampled at 512 kbps is compressed using a lossy method to 128 kbps. Find: (a) Compression ratio (b) Percentage reduction in bit rate Q 3. An image of size 1024 ร— 1024 pixels with 8 bits/pixel is compressed using a lossless technique to 2 MB. Calculate the compression ratio. Q 4. A signal originally sampled at 512 kbps is compressed using a lossy method to 128 kbps. Find: (a) Compression ratio (b) Percentage reduction in bit rate Q 5. A source emits symbols with probabilities: P(A)=0.5, P(B)=0.25, P(C)=0.125, P(D)=0. If a coding scheme produces an average code length of 1.75 bits/symbol , compute: (a) Entropy of the source (b) Coding efficiency

Q 6. Find the Huffman code for the following stream of data (28 point )

{ 1, 1, 1, 1, 1, 1, 1 , 2, 2, 2, 2, 2, 2 , 3, 3, 3, 3, 3, 4, 4, 4, 4 , 5, 5, 5, 6, 6 , 7 } Q 7. A source emits 5 symbols with probabilities: Pโ‚ = 0.4, Pโ‚‚ = 0.2, Pโ‚ƒ = 0.2, Pโ‚„ = 0.1, Pโ‚… = 0.1 A Huffman code is constructed. Find: (a) Entropy of the source (b) Average codeword length (c) Redundancy of the code (d) Compression ratio if fixed-length coding (3 bits/symbol) was used earlier Q 8. An 8ร—8 block after DCT has total energy = 10,000 units. Only 10 coefficients retain 90% of total energy after quantization. Find: (a) Energy retained and lost (b) Percentage compression if only those 10 coefficients are stored (ignore overhead) (c) Interpret efficiency of transform coding