Join floating white pixels to the nearest island without closing morph?
Currently using Closing to gap closing and merging floating pixels to the nearest island, the problem is with tiny details which are required to stay immutable closing will alter the image and merge tiny details. The optimal solution is to detect the pixels that need to be joined and join pixels to the nearest island using a arm to merge both, no matter the distance or better giving a distance limit in pixels.
There are any easy solution to this problem?
As example the following picture (black and white) shows the problem, the red circles shows what i want to merge, currently i'm able to detect those isolated pixels and i have the ROI rectangle of them, so can i do any kind of ROI join or something that doesn't perform a closing on whole image?
The result of image if i perform a closing with 2 iterations: (Note that image have a huge zoom, spacing is really low)