how to save the specific variable for each image when I have done batch image processing?
Afficher commentaires plus anciens
Hello everybody
I have done a batch of image processing. I would like to compare all the images based on one or two variables (the results that I am finding in the code) Let's say, I am finding a number of pixel in the mask for each image and I need to see the result of each image. When I process all images, it only shows the last image I processed in the workspace. Can I save the result of each image as a MAT-file?
Thanks
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 7 Août 2018
Modifié(e) : Image Analyst
le 7 Août 2018
In the loop, just save the value into an array, for example, if you're looping over k and computing mean values:
for k = 1 : whatever
% Code to change image, then
meanValues(k) = mean2(grayImage);
end
% Save all values in a .mat file.
save(filename, 'meanValues');
1 commentaire
engineer
le 7 Août 2018
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!