how to save image of the result imfindcircle
Show older comments
i have used imfindcircle to find circle object in image. do you know how to save the image result of the circle object detected?
1 Comment
Image Analyst
on 19 Dec 2015
Edited: Image Analyst
on 3 Jan 2016
What kind of result do you want? The function imwrite() saves images - why can't you use that? Please explain why that won't work but only after you read this.
Accepted Answer
More Answers (2)
Alejandro Navarro
on 20 Mar 2019
0 votes
Hello.
instead of saving the output of a viscircles + image to a file, I would like to assign it as a variable. I have tried "imfuse(Image,Circles)" but this does not work because the circles are not an image, but a "matlab.graphics.primitive.Group". How would I do that related task?
Thanks
Michal Heker
on 24 Sep 2020
0 votes
How about making a circles mask with imdilate and a disk element structure?
Something like this:
BW = zeros(size(I,1),size(I,2));
for i = 1:length(points)
landmarksMask(points(i,2),(points(i,1)) = 1;
end
BW = imdilate(BW, strel('disk',3));
And duplicate your image with BW.
Categories
Find more on Images 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!