A black and white image has been compressed using run-length encoding (RLE).
Each run of pixels is encoded using a single byte (8 bits):
0 for black, 1 for white.Figure 1 shows the bit pattern representing a run of 40 black pixels followed by a run of 75 white pixels.
Figure 1
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 |
|---|
Using the same RLE method, give the 16-bit pattern for a run of 18 white pixels followed by a run of 85 black pixels.
Write your answer in Table 1.
Table 1