Getting image dimensions into a table
Mostrar comentarios más antiguos
I have a code here:
%% Get the dimensions of the image
Namelist = cell(length(filelist), 1);
for i = 1:length(filelist)
imagename = filelist(i).name;
Namelist{i, 1} = filelist(i).name;
I = imread ([newimagepath, '/', imagename]);
[y x z] = size(I);
T = table(x, y, z)
end
I have let's say 100 images (I), how can I have the (x, y, z) for each image be put into the table? Currently, when I run the code, the table ends up being 1 row, with the x, y, z values for the last image in the loop.
Thank you in advance!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!