필터 지우기
필터 지우기

information of a folder of images

조회 수: 3 (최근 30일)
Sajitha K.N.
Sajitha K.N. 2019년 10월 17일
답변: Sid Singh 2019년 10월 22일
How we can get information of a folder of images using imfinfo() and I also want to get bit depth of all images. And this bit depth values want to store in a xlsheet. Please someone help me. Its very urgent.
  댓글 수: 5
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 17일
편집: KALYAN ACHARJYA 2019년 10월 17일
Then call the images one by one (for loop) from the folder and do operation as per requirement.
Sajitha K.N.
Sajitha K.N. 2019년 10월 17일
When I'm doing like imfinfo() shows error msg :
char, string
Instead its type was uint8.
Error in bitdepth2 (line 9)
imfinfo(img)

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

답변 (1개)

Sid Singh
Sid Singh 2019년 10월 22일
Hi, from the documentation
this function takes in a filename and gives you the information about that image. If you pass a folder name, it would give an error which is the standard behavior.
You can use the following command to list directory contents and extract individual file information in a for loop.
Regarding writing the data to excel, you can refer this documentation

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by