###### Activity3.3.2

In this activity, we will explore the difference between these two coordinate systems.

1. First, we will explore the $$RGB$$ color model.

COLOR-RGB

1. What happens when $$G=0\text{,}$$ $$B=0$$ (pushed all the way to the left), and $$R$$ is allowed to vary?

2. What happens when $$R=0\text{,}$$ $$G=0\text{,}$$ and $$B$$ is allowed to vary?

3. How can you create black in this color model?

4. How can you create white?

2. Next, we will explore the $$YC_bC_r$$ color model.

COLOR-YCbCr

1. What happens when $$C_b=0$$ and $$C_r=0$$ (kept in the center) and $$Y$$ is allowed to vary?

2. What happens when $$Y=0$$ (pushed to the left), $$C_r=0$$ (kept in the center), and $$C_b$$ is allowed to increase between 0 and 127.5?

3. What happens when $$Y=0\text{,}$$ $$C_b=0\text{,}$$ and $$C_r$$ is allowed to increase between 0 and 127.5?

4. How can you create black in this color model?

5. How can you create white?

3. Verify that $$\bcal$$ is a basis for $$\real^3\text{.}$$

4. Find the matrix $$C_{\bcal}$$ that converts from $$\threevec{Y}{C_b}{C_r}$$ coordinates into $$\threevec{R}{G}{B}$$ coordinates. Then find the matrix $$C_{\bcal}^{-1}$$ that converts from $$\threevec{R}{G}{B}$$ coordinates back into $$\threevec{Y}{C_b}{C_r}$$ coordinates.

5. Find the $$\threevec{Y}{C_b}{C_r}$$ coordinates for the following colors and check, using the diagrams above, that the two representations agree.

1. Pure red is $$\threevec{R}{G}{B}= \threevec{255}{0}{0}\text{.}$$

2. Pure green is $$\threevec{R}{G}{B}= \threevec{0}{255}{0}\text{.}$$

3. Pure blue is $$\threevec{R}{G}{B}= \threevec{0}{0}{255}\text{.}$$

4. Pure white is $$\threevec{R}{G}{B}= \threevec{255}{255}{255}\text{.}$$

5. Pure black is $$\threevec{R}{G}{B}= \threevec{0}{0}{0}\text{.}$$

6. Find the $$\threevec{R}{G}{B}$$ coordinates for the following colors and check, using the diagrams above, that the two representations agree.

1. $$\threevec{Y}{C_b}{C_r}=\threevec{128}{0}{0}\text{.}$$

2. $$\threevec{Y}{C_b}{C_r}=\threevec{128}{60}{0}\text{.}$$

3. $$\threevec{Y}{C_b}{C_r}=\threevec{128}{0}{60}\text{.}$$

7. Write an expression for

1. The luminance $$Y$$ as it depends on $$R\text{,}$$ $$G\text{,}$$ and $$B\text{.}$$

2. The blue chrominance $$C_b$$ as it depends on $$R\text{,}$$ $$G\text{,}$$ and $$B\text{.}$$

3. The red chrominance $$C_r$$ as it depends on $$R\text{,}$$ $$G\text{,}$$ and $$B\text{.}$$

Explain how these quantities can be roughly interpreted by stating that

1. the luminance represents the brightness of the color.

2. the blue chrominance measures the amount of blue in the color.

3. the red chrominance measures the amount of red in the color.

in-context