Borrar filtros
Borrar filtros

How to create mat file for 60 colour images

1 visualización (últimos 30 días)
Moiz Hussain
Moiz Hussain el 12 de Jul. de 2013
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.

Respuestas (1)

David Sanchez
David Sanchez el 12 de Jul. de 2013
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.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by