Search found 2 matches

by Core
2017-01-04T13:35:12-07:00
Forum: IMagick
Topic: PHP colormatriximage
Replies: 6
Views: 17666

Re: PHP colormatriximage

In IM "-color-matrix", the matrix rows represent output, and columns represent input. For RGB images, the 5 rows and columns are: red, green, blue, alpha, and offset. For example, if the first row has values "a,b,c,d,e" then the output red channel will be: R' = a*R + b*G + c*B + d*A + e where R,G,B ...
by Core
2017-01-02T13:43:59-07:00
Forum: IMagick
Topic: PHP colormatriximage
Replies: 6
Views: 17666

PHP colormatriximage

I am trying to write the server element which will render a image constructed in Flash. I'm using ColorMatrixFilter in AS3 but it takes a 4x5 matrix, whereas the PHP version takes 5x5. I don't understand what the 5th row is? I think the last column is brightness. I don't understand how ...