Error using images.int​ernal.imag​edisplayPa​rseInputs

2 ビュー (過去 30 日間)
Mayeesha
Mayeesha 2022 年 8 月 11 日
コメント済み: Walter Roberson 2022 年 8 月 17 日
Hello, i am trying to open this image, but it gives me the following error message:
f = figure('visible', true); % new figure in its own figure window
imshow('resin_canal.jpg')
Could anyone pleae help me with it?
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 8 月 11 日
That file, resin_canal.jpg does not exist in the current directory or anywhere on the MATLAB path.
Are you looking for this:
filename = 'https://d2vlcm61l7u1fs.cloudfront.net/media%2F244%2F2441f05a-fd89-41c6-a06a-7c9a440a7053%2FphpcP4dl1.png';
img = imread(filename);
imshow(img)

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

回答 (1 件)

Kunal Kandhari
Kunal Kandhari 2022 年 8 月 17 日
Hi,
That’s likely because the image 'resin_canal.jpg' does not exists in your MATLAB directory or current folder where your MATLAB script is written.
Solution to this problem is to check that the image 'resin_canal.jpg' resides in the current folder or provide the full path to that image.
And before showing the image, you need to read it by using function
imread(image_path)
Correct code:
f = figure('visible', true);
img=imread(filename);
imshow(img);
Hopefully it solves your issue

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by