information of a folder of images

1 回表示 (過去 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 Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by