filling open gaps in binary image object
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Hdaib
am 23 Nov. 2019
Kommentiert: Mohammad Hdaib
am 10 Jan. 2020
Hello...
i am working with experiment to find out the diameters of generated bubbles.
here is the original image.

here is the processed one.

here is an object from idx list:

this is an object in photo whivh have a same size as the processed one but with zoom in.
my question is:
how to make such an object to appear more circular???
i mean by more circular like this:

Regards,
2 Kommentare
Akzeptierte Antwort
Image Analyst
am 7 Jan. 2020
I've done image processing on lather/suds/bubbles for several projects. First of all you need to get a good image without specular reflections, and this means using crossed polarizers and probably a broad, diffuse overhead light source. Of course it's best if you can press the bubbles between two plates in a monolayer, or against one glass plates if two are not possible.
If you can, try to make the background black and free of clutter and objects.
Then to get rid of interior walls of other bubbles through larger bubbles above you might try a morphological opening.
4 Kommentare
Weitere Antworten (1)
KALYAN ACHARJYA
am 23 Nov. 2019
Bearbeitet: KALYAN ACHARJYA
am 23 Nov. 2019
#Approximate
se=strel('diamond',3);
BW2=~imdilate(BW1,se); % 2nd Binary image
BW3=bwareafilt(BW2,1);
BW4=imerode(BW3,se);
Do the smothing & measure approximated distance (dist on multiple direction & do average to find diameter) or regionprops.
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!