Would it be possible to change the greyscale to a blue scale?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mathias Giesbrecht
am 4 Jan. 2022
Bearbeitet: Mathias Giesbrecht
am 4 Jan. 2022
Would it be possible to change this greyscale picture into a other color scale like in the two images? I tried some codes to make the binary into a color but i am trying to have something more clear to look than greyscale... Thank you
0 Kommentare
Akzeptierte Antwort
Turlough Hughes
am 4 Jan. 2022
I don't think MATLAB has a blue scale colormap. You could do something custom, like the following. I'll use camerman for illustration:
I = imread('cameraman.tif');
imshow(I)
n = 128;
blueMap = [zeros(n/2,1) linspace(0,0.5,n/2).' linspace(0.5,1,n/2).';...
linspace(0,1,n/2).' linspace(0.5,1,n/2).' ones(n/2,1)];
figure()
imshow(I)
colormap(blueMap)
imshow(I)
colormap('copper') % or parula, hsv, bone, jet, etc.
1 Kommentar
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Colormaps 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!