How can I create MAT file?

I'm doing with object in video tracking, I have a set of 5,000 jpg images, so I'd like to create a file to store those images as I can load all images from a MAT file into MATLAB. Can anyone please guide me how to do that?

 採用された回答

Jos (10584)
Jos (10584) 2013 年 2 月 6 日

1 投票

help imread
help save

2 件のコメント

Jan
Jan 2013 年 2 月 6 日
+1: exactly.
Pam
Pam 2013 年 9 月 24 日
Thanks

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2013 年 2 月 6 日

1 投票

Storing pictures in JPEG files is a good idea already. In MAT files they will occupy much more memory such that I guess that the reading will be slower. Anyhow, it works: Create a loop, use IMREAD to import one file, store it in a cell and save this cell at the end in a MAT file using SAVE.

1 件のコメント

Pam
Pam 2013 年 9 月 24 日
Thank you ^^

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by