is there a possibility to merge different regions in a binary image that are not attached to each other?
From my experiments I get the first image which shows the intensity of each pixel in the x-y-plane. From this I calculate the binary image by dividing the intensity of each pixel by "max(max(image))". The binary is shown in the second image. There, I now have the problem that from the big region of the first image, only several smaller regions remain, which are no longer attached to each other. Since this is physically incorrect, I need to merge those regions again to get one which is similar to the big one in the first image.
-> How can I merge those regions in MATLAb again? I need the entire region for further analysis and up to now MATLAB only recognises the lower left part (red marker) as the entire region of the binary.
I am using MATLAB Version: 220.127.116.112 (R2014a) and the image processing toolbox.
I hope you can help me, thank you very much for your help, Markus