How to change default values and limits within a colormap
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, How are you?.
I want to change the default values in a colormap, In order to plot a map of "diopter powers", like in this image:

However each value is related with a value (or a range of values). For example: if a "diopter power" has a value 39 to 40, the color has to be green. (It is a standard).
Someone could help to know, how I can choose the default values to each color in the colormap.
Thanks for your help.
Rewards.
0 Kommentare
Antworten (1)
Image Analyst
am 27 Okt. 2016
Looks kind of like jet upside down. Try this
imshow(grayImage, []);
myColorMap = flipud(jet(256));
% Top row black
myColorMap(end, :) = 0;
% Bottom row white
myColorMap(1, :) = 1;
colormap(myColorMap);
colorbar;
2 Kommentare
Jose abel De la Fuente
am 28 Okt. 2016
Bearbeitet: Jose abel De la Fuente
am 28 Okt. 2016
Siehe auch
Kategorien
Mehr zu White finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
