How to give colorbar to a tif image in Matlab
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
x = imread('C:\Users\user\Desktop\PHD EXP Work\ACLPP\9air.tif');
imshow(x);
colorbar;
0 Kommentare
Antworten (2)
Sulaymon Eshkabilov
am 24 Nov. 2022
Have tried this syntax:
[X,Cmap]= imread('IMAGE.tif');
image(X);
colormap(Cmap);
Walter Roberson
am 24 Nov. 2022
If the tif is rgb then there is no meaningful colorbar for it.
If the tif is not rgb then imshow would have automatically used colormap(grey) and colorbar() would draw the grayscale.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Display Image 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!