フィルターのクリア

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

3 ビュー (過去 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 日
Try
axis equal
  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 件)

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by