Read images from different subfolders and create movie from them?!

1 view (last 30 days)
I have images with 3 set of diffrent names which are located in different subfolders like as what is explained below for diffrent years and months starting from 2010. I tried to use the imagest but I have no access to that and also with some other available codes to read images from subfolders with dir and cellfun, I got problm in in image read with the directory name and there where nothing in the final part that I have created.The main part is to creat movie from them all the image in a movie.
Please help in this regard?! Thank you
********************************
C:\ ....\folder\
2010 2011 2013 ....
and in ecach folder repeative names but a dit diffrent like as
\2010\
run_game_2010_01.png run_game_2010_02.png ... run_game_2010_12.png
\2011\
run_game_2011_01.png run_game_2011_02.png ... run_game_2011_12.png
.
.
>>>>>At least any help redarding to import of such pattern into matlab and used imread, please ?!

Accepted Answer

Stephan
Stephan on 24 Jul 2019
Edited: Stephan on 24 Jul 2019
I suggest to read about the imageDatastore function and use the includeSubfolders option. Creating a video from this should work easily then.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!