Clear Filters
Clear Filters

Remove bubbles from an image

3 views (last 30 days)
Yaisel Córdova Chávez
Yaisel Córdova Chávez on 10 Jun 2021
Answered: Shubham on 30 Apr 2024
Hello
I have a series of images very similar to the one I show here and I would like to remove the part that is not of interest for the study, that is the bubbles that are not part of the jet, I have tried several things but nothing has been satisfactory. Could someone help me?
Thanks in advance.
This is part of the processing I do. K is the intial image and filt_thresh = 0.40:
J_bw = imbinarize(K,filt_thresh);
J_mf = medfilt2(J_bw, [2 2]);
SE = strel('disk',r,0);
J_e = imerode(J_mf,SE);
J_d = imdilate(J_e,SE);

Answers (1)

Shubham
Shubham on 30 Apr 2024
Hey Yaisel
I understand that you wish to remove "bubbles" from the image.
You can consider using region-based segmentation techniques to identify and separate bubbles from the rest of the image. Use the "regionprops" function to extract properties of connected components (regions) in the binary image. You can then filter out regions based on their area, circularity, or other characteristics. You can find the relevant documentation here:
You may also try edge detection for identifying the boundaries of the bubbles and then apply morphological operations to refine the edges.
You may also find below MATLAB Answers relevant to your query:
I hope this helps!

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!