imdouble
I think I need to further clarify the problem. Every pixel of the RGB
planes of the image has to be multiplied by Matrix1. For instance,
the first pixel of each of the three planes R1, G1 & B1 will first be
multiplied by Matrix1, then R2, G2 & B2 will be multiplied and so on.
So it should be a 3X3 matrix multiplied by another 3X1 matrix as
follows:
The first pixels of the new image (say XYZ)
[X1 Y1 Z1] = [m11 m12 m13; m21 m22 m23; m31 m32 m33] * [R1 G1 B1];
.
.
.
[Xn Yn Zn] = [m11 m12 m13; m21 m22 m23; m31 m32 m33] * [Rn Gn Bn];
Finally the output image XYZ will have the pixel values X1,..,Xn for
the X plane, Y1,..,Yn for the Y plane and Z1,..,Zn for the Z plane
and show the final image.