PIxel to length Scale
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Robert Roy
am 30 Jan. 2015
Kommentiert: Robert Roy
am 30 Jan. 2015
Hi there I have currently produced image that I am trying to change the scaling of the axis from pixels to either mm or cm. I know from scaling that the resolution is 0.048 mm/pixel.
The part of the code I am using for imaging is:
image=AverageImg1
imagesc(flipud(AverageImg1),[0 550]);
set(gca,'YDir','normal');
0 Kommentare
Akzeptierte Antwort
Jan
am 30 Jan. 2015
You can use iamge() instead and specify the X and Y ticks manually:
x = linspace(0, 0.048 * 550, 551);
y = linspace(0, 0.048 * 550, 551);
image(x, y, AverageImg1);
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!