MATLAB: Color-problem with imread and image

imageImage Processing Toolboximread

I'm working on a mirror anamorphosis by a cilindrical mirror. I'm having a problem with using colors. The problem can be reduced to this simple script:
picture = imread('pict.jpg')
image(picture)
This is the picture that I want to get:
This is the picture that I do get:
Does anyone know what went wrong? Many thanks.

Best Answer

It's an indexed image. Get the second output of imread(), which you are not asking for now. It will be the color map. Then apply it with the colornap() function.