You are here: Reference Guide > Filter Nodes > Matrix

Matrix

Adds a user defined matrix to the input allowing you to multiply all or specific channels by the matrix values. You can copy and paste an existing matrix, using the Animation menu, or adjust individual fields manually.

The matrix controls how each pixel in the source image is affected by those around it, for example,

-1

-1

-1

-1

8

-1

-1

-1

-1

produces an edge detection filter (see EdgeDetect) by multiplying the center pixel by 8 and the surrounding pixels by -1, and then adding the nine values together to calculate the new value of the center pixel. This process is repeated for every pixel in the source image to create the output image.

NOTE:  Matrix results that fall outside the 0-1 range are clipped.