how to add custom images in matlab GUI

i know to add images which exist in image processing toolbox,but if i need to add image of my own, then what is the procedure or code or is there a way i can add images to the image processing toolbox.
I=imread('eight.tif');
hi = imagesc(I)
colormap gray
here is how i imported the already existing image

 採用された回答

Image Analyst
Image Analyst 2015 年 7 月 5 日

1 投票

Do this to find out the folder where the Image Processing Toolbox demo images are:
folder = fileparts(which('cameraman.tif')); % Determine where demo folder is (works with all versions).
Now, just put your images into that folder with Windows Explorer or whatever file manager you use for your operating system.

1 件のコメント

Image Analyst
Image Analyst 2015 年 7 月 5 日
I don't know why you'd need to do that. I don't. Much better is to just specify the full filename (folder + base file name + extension) when you call imread(). See the fullfile() function also.

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

その他の回答 (1 件)

Sagar AS
Sagar AS 2015 年 7 月 6 日

0 投票

thank you this worked

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2015 年 7 月 5 日

回答済み:

2015 年 7 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by