What does "[MNx3]" mean? Images have usually a size of [M x N x 3]. And how do you try to display the image? Please post the exact code instead of a description.
hey gould you get the solution of your problem. If yes please send me the codes. I am trying to the same thing, I have a rgb image and i need to get the HSV (basically Hue) from that image at every pixel.