필터 지우기
필터 지우기

reading image, without nowing the name of the file.

조회 수: 3 (최근 30일)
reza
reza 2014년 7월 27일
댓글: Image Analyst 2014년 7월 27일
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
Star Strider
Star Strider 2014년 7월 27일
What do you mean by ‘address’? URL? FTP?
reza
reza 2014년 7월 27일
No, address on my computer. like c:\pictures\...

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 27일
  댓글 수: 2
reza
reza 2014년 7월 27일
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 2014년 7월 27일
See my attached demo for how to recurse a folder and find all files inside all folders within it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by