Deforming an image without changing axis scale
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Elana Peisner
am 16 Jul. 2021
Kommentiert: Elana Peisner
am 19 Jul. 2021
I have a image where when I convert the dimensions from pixels to micrometers, the size of the picture is has a long x-axis and very short y-axis (shown in first image attached). I want to know it there is a way to resize the picture but keep the same axis? When ever I try to use the imresize function the axis always change to the actual pixel size (shown in second image attached). I am trying to get a similar size to the second picture but have the same axis lables in the first picture.
0 Kommentare
Akzeptierte Antwort
ANKUR KUMAR
am 16 Jul. 2021
Bearbeitet: ANKUR KUMAR
am 16 Jul. 2021
You can use axis square to force image to be square. See this below example.
Let us load sample image:
corn_gray = imread('corn.tif',3);
figure
imshow(corn_gray(:,1:100)')
axis on
figure
imshow(corn_gray(:,1:100)')
axis square
axis on
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Read, Write, and Modify 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!