I have a binary images of tree clusters, when I imshow(BW), some single trees are separated from the main cluster by 1 pixel. Is there a way to make single trees to be part of the nearest cluster. I've tried bwfill, didn't work.
MATLAB: Filling gaps in binary images
binaryboundaryclusterfillimageImage Processing Toolbox
Best Answer