From: andy zhu on
sorry, I have a 3-D box, at each point there is a intensity(x,y,z). suppose the intensity matrix has m, n, p points along x, y, z.

Then size(intensity)=m,n,p

if I want to rotate this intensity matrix using euler angle (theta, phi, psi)

I understand that the rotation matrix is a matrix 3 by 3, consisting of theta, phi, and psi

how can I multiply this roation matrix (3 by 3) with the intensity matrix (m by n by P)??

Thanks a lot.
Andy