How can I keep overlapping regions that I see in Imfuse and remove everything else in the image?

Illustration
Mitchell - 2020-10-05T12:29:53+00:00
Question: How can I keep overlapping regions that I see in Imfuse and remove everything else in the image?

I used region props and have converted frames in a video binary images. How do I keep only the overlapping regions and remove everythign else? I would like to store the residual as frames to a video

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

This can be done in one line of code with imreconstruct().
J = imreconstruct(marker,mask) performs morphological reconstruction of the image marker under the image mask, and returns the reconstruction in J. The elements of marker must be less than or equal to the corresponding elements of mask. If the values in marker are greater than corresponding elements inmask, then imreconstruct clips the values to the mask level before starting the procedure


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!