Loop overwriting previous file
Show older comments
Hi, I am trying to automate uncollaging collaged images. I have a folder with a bunch of collaged images that are already binary. When I run my loop and use regionprops it only ends up saving information for the last image in the folder... how do I fix this???
for n = 1:total_images_binary
binary_Images=fullfile(image_folder_binary, filenames_bin(n).name) ; % its will specify images names with full path and extension
our_images_binary = imread(binary_Images); % read images
labeledImage = bwlabel(our_images_binary,8); % Label each blob so we can make measurements of it
blobMeasurements = regionprops(labeledImage, our_images_binary, 'all');
numberOfBlobs = size(blobMeasurements, 1);
end
2 Comments
no zoop
on 13 Sep 2019
Walter Roberson
on 13 Sep 2019
blobECD(k) = sqrt(4 * blobArea / pi);
perhaps.
Accepted Answer
More Answers (0)
Categories
Find more on Blue in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!