A digitised photograph and a scanned black-and-white text document both need to be compressed for storage on a school's shared drive.
(a)Define lossy compression and lossless compression.(2)
(b)A single row of pixels from a bitmap image has the following greyscale values, read left to right:
3, 3, 3, 3, 3, 7, 7, 2, 2, 2, 2, 2, 2, 9
Apply run-length encoding (RLE) to this row of data. Give your answer as a list of (count, value) pairs.(3)
(c)State one type of file for which lossy compression would be a suitable choice and justify your answer.(2)
(Total for Question 1 is 7 marks)