I'm new to PI. Now I'm trying to imitate on PI different steps of image processing I have been using on other programs before. Among Pixelmath's functions (to be seen in the drop-down list of PM's editor) I didn't find a function which addresses a pixel's red value - or green value or blue value. How could I use PM to realize a shift in colour space of a certain pixel like this (may be there are more appropriate means to do this than PM. This is meant only as an example of liberally manipulating colour channels):
new_red_value(x, y) := a_11*red_value(x, y) + a_12*green_value(x, y) + a_13*blue_value(x, y)
new_green_value(x, y) := a_21*red_value(x, y) + a_22*green_value(x, y) + a_23*blue_value(x, y)
new_blue_value(x, y) := a_31*red_value(x, y) + a_32*green_value(x, y) + a_33*blue_value(x, y)
where <a_ij> is a matrix of real (=floating point) coefficients.
Thank you for help
Heinrich