code to choose an image from a folder

7 ビュー (過去 30 日間)
Shweta Naiskar
Shweta Naiskar 2017 年 3 月 15 日
コメント済み: Shweta Naiskar 2017 年 3 月 15 日
hello i tried the following code
path = 'c:\users\userName\my documents\matlab';
filter = '*.bmp';
selectedFile = uigetfile(fullfile(path , filter));
imshow(selectedFile)
iam not able to display the image. please help.
thank you

採用された回答

Chad Greene
Chad Greene 2017 年 3 月 15 日
Try
I = imread(selectedFile);
imshow(I)
  1 件のコメント
Shweta Naiskar
Shweta Naiskar 2017 年 3 月 15 日
thank you

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by