How to create mat file for 60 colour images
1 次查看(过去 30 天)
显示 更早的评论
Hi Can any one guide me to create .mat file of 60 or more colour images so that I can use this file for motion detection.please give me the complete code for it.
0 个评论
回答(1 个)
David Sanchez
2013-7-12
my_images = dir('*.png'); % adapt to your images extension
I = cell(numel(my_images),1); % initialize a cell array to hold the images
for k=1:numel(my_images)
I{k}=imread(my_images(k).name);
end
You will end up with a cell array containing an image on each cell.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!