I have an image of a map loaded in MATLAB.
BEFORE the map is loaded into MATLAB the appearance is:
US Continent: Green
Ocean: Blue
Canada: Yellow
AFTER I load the map it is displaying:
Canada and the US as one color BUT I need to separate them by colors.
My code is:
im = double(imread('US.png'))
figure;
colormap summer;
...
colormap summer
not fix this? – mathematician1975im
once loaded? Do these correspond to the three (pure) color values you see before loading (red, green, blue)? Do they give 3 distinct values afterrgb2gray
? If yes, then maybe your problem is with scaling the displayed image. – gevang