How can I read multiple image files in a folder using Simulink?

5 ビュー (過去 30 日間)
Sonoma Rich
Sonoma Rich 2016 年 5 月 19 日
コメント済み: Azzi Abdelmalek 2016 年 5 月 20 日
I have many tiff image files in a given directory I want to process using Simulink. I have the Computer Vision Toolbox, but the "Image From File" block can only read one specified image. Is there a way I can specify a directory and have Simulink read all the tiff files in that directory? It would be nice to have something like reading the "From Multimedia File" block, but specifying a directory and image type.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 19 日
Use Matlab function block
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 20 日
Sonoma commented :
I tried that. I used the "dir" Matlab function, but it returns a structured array which adds complications when using it within a Simulink block. Can you provide sample code for doing this?
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 20 日
Post your code

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

Community Treasure Hunt

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

Start Hunting!

Translated by