MATLAB: How to fullfill segmented region by using region growing

region growing

Can anyone help me on how to make the segmented purple region fulfilled the neighborhood 'empty' area with the same purple color?
The image is actually an overlapped of two brain images: </matlabcentral/answers/uploaded_files/54479/overlapped%20images.png>
The problem is, how to make the region of purple growing and fulfill all it's neighborhood region so that the region is larger.
Actually my intention is to perform region growing before k-means clustering, but it seems like it does not make any sense because both are segmentation. Any idea guys?…

Best Answer

The image is actuall
y an overlapped of two brain images: