Filter löschen
Filter löschen

reading image, without nowing the name of the file.

3 Ansichten (letzte 30 Tage)
reza
reza am 27 Jul. 2014
Kommentiert: Image Analyst am 27 Jul. 2014
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 Kommentare
Star Strider
Star Strider am 27 Jul. 2014
What do you mean by ‘address’? URL? FTP?
reza
reza am 27 Jul. 2014
No, address on my computer. like c:\pictures\...

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Jul. 2014
  2 Kommentare
reza
reza am 27 Jul. 2014
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,
Image Analyst
Image Analyst am 27 Jul. 2014
See my attached demo for how to recurse a folder and find all files inside all folders within it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by