How to compose more than 2images in a folder ?
Afficher commentaires plus anciens
Dear All,
I have 10 images in a folder need to be composed.
I found the function imfuse() but it is work for only 2 images.
Could anyone have any solutions for my case ?
I attached 10 images
Thanks and regards!
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 15 Juil 2022
Maybe you just want to sum the images to get the average
imgFiles = dir('*.png') ;
numFiles = length(imgFiles);
for k = 1 : numFiles
thisImage = double(imread(imgFiles(i).name))
if k == 1
sumImage = thisImage;
else
sumImage = sumImage + thisImage;
end
end
averageImage = uint8(sumImage / numFiles);
imshow(averageImage, []);
Catégories
En savoir plus sur Images dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
