- the Effect Color Matrix for Video Editor
- function for
- the color matrix, for recount the alpha, red, green, blue channels of video or images

- the dialog
- the parameters
- red matrix, the matrix for how get the result as red. the matrix count by a * R + b * G + c * B + d * A + e.
- R is the current image red color, G is it green color, B is it blue color, A is it alpha (the transparency).
- for example 1,0,0,0,0 mean a,b,c,d,e are 1,0,0,0,0. so the result its 1 * R + 0 *G + 0 * B + 0 * A + 0 = R, nothing changed.

- green, blue, alpha matrix, work same as red matrix.

- red matrix, the matrix for how get the result as red. the matrix count by a * R + b * G + c * B + d * A + e.
- examples
- Null matrix, for , unchanged

1, 0, 0, 0, 0

0, 1, 0, 0, 0

0, 0, 1, 0, 0

0, 0, 0, 1, 0 - Red all matrix, for

0.6, 0.6, 0.6, 0, 0

0, 0, 0, 0, 0

0, 0, 0, 0, 0

0, 0, 0, 1, 0 - double Red matrix, for

2, 0, 0, 0, 0

0, 1, 0, 0, 0

0, 0, 1, 0, 0

0, 0, 0, 1, 0 - Green focus matrix, for

0.6, 0, 0, 0, 0

0, 1, 0, 0, 0

0, 0, 0.6, 0, 0

0, 0, 0, 1, 0 - 1.4 times the brightness, for

1.4, 0, 0, 0, 0

0, 1.4, 0, 0, 0

0, 0, 1.4, 0, 0

0, 0, 0, 1, 0 - Gray by Red matrix, for

1, 0, 0, 0, 0

1, 0, 0, 0, 0

1, 0, 0, 0, 0

0, 0, 0, 1, 0 - Binrary matrix, for

255, 0, 0, 0, -24480

0, 255, 0, 0, -24480

0, 0, 255, 0, -24480

0, 0, 0, 1, 0

- Null matrix, for , unchanged
- improve
**what's color?**

- as human, we have red,green,blue (and the low chroma) sensors, we call eyes.
- the light from SUN give 255 red, 255 green and 255 blue. 255 just example for human.
- the leaves are green, because it takes the 200 red and 200 blue, only leave the green reflected to my eyes, so very green.
- now i want change it look as red, how do i do? we can't ask it return the red for us, so we only can put more red for picture of it.

**how to get more color ?**

- base the a * R + b * G + c * B + d * A + e
- want get more red, just increase the a, so increase b for more green, increase c for more blue

**where i have to set that ?**

- above we known how to get the color, next, put that (a,b,c,d,e) to the dialog, that's how to set the color.
- put to red matrix if the color for red channel, so put to green matrix if the color for green channel, then blue...

**this is that double red matrix, what that mean ?**

2, 0, 0, 0, 0

0, 1, 0, 0, 0

0, 0, 1, 0, 0

0, 0, 0, 1, 0

- first line is for dialog red matrix,
- so 2, 0, 0, 0, 0 mean 2 * Red + 0 * Green + 0 * Blue + 0 * Alpha + 0 = 2 * R,
- so the image current pixel the
**Red Channel Value = 2 * Red Channel Value** - so double red value we got, because we put into red matrix, so result will as the red value, so red got double red.
- next line is for dialog green matrix,
- so 0, 1, 0, 0, 0 mean 0 * Red + 1 * Green + 0 * Blue + 0 * Alpha + 0 = 1 * G, so Green Channel Value = 1 * Green Channel Value
- y, the Green value unchanged.
- next line is the blue, same as green matrix, blue also unchanged.
- so in the result all pixels just got double red, that's why named double red matrix.

**according the double red matrix, if i set 2, 0.5, 0.5, 0, 0 to red matrix, what's happen?**

- as you known, it mean double red + 0.5 * green + 0.5 * blue as red result.
- so red result get 200% from red + 50% from green and blue.
- is that mean red result look like 50% green and 50% blue?
- no, already as red, so in red matrix is the result for AS red, in green matrix also mean AS green, blue same.

(back to first question "what's color", the red have an max value(the 255), so even you set * 10 here still got the 255, so want to look more red, also can do same as the leaves, take(lower) other color, leave(higher) the color you want) - do that lose that 50% green, blue?
- no, because we set 0,1,0,0,0 for green matrix, so green matrix still got 100% green.

- note
- see Pixel Matrixfor more, include you own matrix