reading image, without nowing the name of the file.

Hello,
I'm trying to read an image into a matrix, which i'm not suppose to now the file name in advance. usually i type for example: s= imread('mypic.jpg');
now i don't now the file name i just have its address, how should i do that?
thanks,

3 Comments

anything like '*.jpg' or something?
What do you mean by ‘address’? URL? FTP?
No, address on my computer. like c:\pictures\...

Sign in to comment.

 Accepted Answer

2 Comments

Thanks a lot.
It definitely solved my problem, thanks.
now here goes another question:
i just have the drive address like c:\ , and no specific folder and i want to read all of the pictures inside all or some of the folder inside the address or drive.
i try to find a solution for it, if i didn't find any, i'll post another question.
Thank you,
See my attached demo for how to recurse a folder and find all files inside all folders within it.

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!