How do I prevent the deformation of an image in the axes?

조회 수: 1 (최근 30일)
Youri Miessen
Youri Miessen 2017년 12월 19일
댓글: Image Analyst 2017년 12월 19일
I am using the imread() and image() functions to read and display the image, but it keeps deforming the image because the axes size (square) hasn't the same dimensions as the image. It is important that I use axes for other functions.
This is the code I already have:
if true
[filename,pathname] = uigetfile({'*.jpg';'*.JPEG';'*.GIF';'*.png'}, 'File selector');
image(imread([pathname filename]));
end

채택된 답변

Image Analyst
Image Analyst 2017년 12월 19일
  댓글 수: 2
Youri Miessen
Youri Miessen 2017년 12월 19일
thanks a lot! you're great!
Image Analyst
Image Analyst 2017년 12월 19일
OK, if you've got the solution, then can you please "Accept this answer"?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by