subject
Advanced Placement (AP), 16.02.2021 01:00 cycy24

The image in the previous exercise used the classic RGB color representation to represent color. That’s 24 bits to represent each color. However, the image only had 4 different colors in it! 24 bits is nice when we need to represent millions of different colors, but in this scenario we only needed to represent 4 colors!

If an image has only 4 colors, how many bits are necessary to represent one pixel’s color?

Describe a new custom encoding that uses fewer bits to represent each color in the image. What is your encoding for each color?

If you were to re-encode this image using your new encoding, how many bits would you save when compared to the 24 bit RGB encoding? As a reminder, here is the image:

It is 17 pixels wide, 20 pixels tall, and has 4 different colors: red, blue, black, and white.

If you were to decompress your image would you lose any quality or would you be able to get back to the original image?

ansver
Answers: 3

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 06:00
What is the bottle's speed, as a percentage of the ball's incoming speed?
Answers: 3
question
Advanced Placement (AP), 24.06.2019 20:30
During the decline of the harappan civilization, which group came to power in the indus valley
Answers: 1
question
Advanced Placement (AP), 25.06.2019 19:40
What are 3 traits that ruth may price has in the poisonwood bible? how has she adapted to the new situation? what effect has she had on others?
Answers: 2
question
Advanced Placement (AP), 26.06.2019 00:40
Lori attended a lecture about the sun, and the presenter had placed this image on the wall. which layer of the sun could this image be referring to?
Answers: 1
You know the right answer?
The image in the previous exercise used the classic RGB color representation to represent color. Tha...
Questions
question
English, 01.11.2019 19:31
question
English, 01.11.2019 19:31
question
Mathematics, 01.11.2019 19:31
Questions on the website: 13722367