MATLAB: How can you transform a color x3uint8 image to uint8

colorimageuint8

I have following color image 1152x2048x3 uint8. Is there any way to transform it to 1152x2048 uint8 while still keeping the colors ?

Best Answer

No, because for each pixel 2^(8+8+8) different colors are possible.
Related Question