How do I get the same image as generated by imagesc using ind2rgb
2 views (last 30 days)
Michael Devereux on 24 Apr 2018
I am trying to convert a grayscale image with a colormap to an rgb image using ind2rgb but it loses most of the detail displayed by imagesc using the same colormap and input image.
An example is shown below
figure,imagesc(A), colormap jet
In the example above I want B to be the same as the image displayed by imagesc.
Many thanks in advance!