Presentation is loading. Please wait.

Presentation is loading. Please wait.

Encoding images Skills: none IT concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is.

Similar presentations


Presentation on theme: "Encoding images Skills: none IT concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is."— Presentation transcript:

1 Encoding images Skills: none IT concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License.

2 Internet concepts –Applications –Technology –Implications for Internet skills –Application development –Content creation (images) Where does this topic fit?

3 Let’s encode this image

4 Each pixel has a color Each color has a code

5 12 colors, 12 codes

6 The image is 800 by 500 pixels Each pixel requires 4 bits.

7 0000 1011 0101 Each pixel requires 4 bits How much memory or storage does the image require?

8 Could we have more colors using a 4-bit code?

9 More bits means more unique codes A 00 B 01 C 10 D 11 A 0 B 1 A 000 B 001 C 010 D 011 E 100 F 101 G 110 H 111 A 0000 B 0001 C 0010 D 0011 E 0100 F 0101 G 0110 H 0111 I 1000 J 1001 K 1010 L 1011 M 1100 N 1101 O 1110 P 1111 1-bit code 2-bit code 3-bit code 4-bit code

10 Adding a bit doubles the number of codes A 0000 B 0001 C 0010 D 0011 E 0100 F 0101 G 0110 H 0111 I 1000 J 1001 K 1010 L 1011 M 1100 N 1101 O 1110 P 1111 A 000 B 001 C 010 D 011 E 100 F 101 G 110 H 111 3-bit code 4-bit code

11 Bits + a coding scheme → information More pixels → more information More bits per pixel → more possible colors → more information The amount of information in an image

12 Encoding images Skills: none IT concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License.

13 A few questions An image is 800 by 500 pixels, and each pixel can be one of 12 colors. How much memory would it require? An image is 800 by 500 pixels, and each pixel can be one of 256 colors. How much memory would it require? How many different colors could one represent using a 16 bit code? Can you write a formula to compute the number of unique codes possible given the number of bits in a code?


Download ppt "Encoding images Skills: none IT concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is."

Similar presentations


Ads by Google