No pop-up when using imshow

17 ビュー (過去 30 日間)
William Rowe
William Rowe 2020 年 6 月 13 日
編集済み: Image Analyst 2020 年 6 月 13 日
Hi sorry if this question has been asked before. I'm trying to view my images using the imshow command. I've tried a variety of input arguments (ex. adding additional parameters). I've also tried loading directly from a file, loading into a variable, and building my own image using the matrices in MatLab. Whenever I run imshow(image_name) nothing happens. No pop-up window, no error, nothing.
I'm using MatLab Version 9.7 and Image Processing Toolbox Version 11.0. I'm also on Windows.
Thanks in advance!
  4 件のコメント
Image Analyst
Image Analyst 2020 年 6 月 13 日
Does this work?
clear all
close all
grayImage = imread('moon.tif');
imshow(grayImage);
William Rowe
William Rowe 2020 年 6 月 13 日
Yes, that fixed it! @Image Analyst
Any idea what I was doing wrong? I don't think I shadowed the function, but not sure.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2020 年 6 月 13 日
編集済み: Image Analyst 2020 年 6 月 13 日
William:
You probably had defined image or imshow and forgotten about it. Perhaps a variable, perhaps an m-file name, perhaps a function - who knows. Calling
clear all
fixed it by "undefining" the definition you made. Glad I could help.
(And to all those other people who always yell at me
that there is never any reason to call clear all,
here's proof that it's sometimes useful.)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by