1 of 11

Unit 1 - Lesson 8

Color Images

2 of 11

To do: September 10

1) Which ASCII character is represented by �the binary number 0100 0001?

2) Write the binary sequence to encode:

HEY

3) If my friend has a collection of 78 dolls, �what is the minimum number of bits needed�to encode each doll with a unique binary� representation?

3 of 11

Analog Data: Data with values that change continuously, or smoothly, over time. Some examples of analog data include music, colors of a painting, or position of a sprinter during a race.

Digital Data: Data that changes in a discrete way (separate and distinct) through a finite set of possible values

Unit 1 Lesson 7 - KEY WORDS

image

image

sound

sound

4 of 11

Sampling: A process for creating a digital representation of analog data by measuring the analog data at regular intervals called samples.

samples

Unit 1 Lesson 7 - Wrap Up

image

sound

5 of 11

Unit 1 Lesson 8 - Warm Up

Shades of blue

6 of 11

Pixelation Widget: Color

Levels 2-6

Unit 1 Lesson 8 - Activity

7 of 11

Levels 7-8

Try your best to match the colors using the widget and reproduce the gradient. Don’t worry if it doesn’t match exactly!

Unit 1 Lesson 8 - Activity

8 of 11

Unit 1 Lesson 8 - Wrap Up

Prompt:

What happens at each level of creating a digital color image?

Hint: Think binary...

9 of 11

DIGITAL IMAGE LAYER

Displays a digital approximation based on a sampling of an analog image

Layers of Abstraction

in Color Images

SAMPLING LAYER

Samples of equal size are read from the analog image and assigned to pixels.

PIXEL LAYER

Each pixel is represented by levels of red, green, and blue light.

BINARY LAYER

The red, green, and blue values are represented using a sequence of

binary numbers and sent out via electrical signals.

Unit 1 Lesson 8 - Wrap Up

10 of 11

Unit 1 Lesson 8 - Wrap Up

QUIZ

11 of 11

Unit 1 Lesson 8 - Wrap Up

Homework

  • Complete Code.org U1L8 bubbles 1-7 (color image)