I'm looking for an image filter that does the following operation:
In my first image, I have two spheres. After applying the filter, I'd like to have them "glued together" which something that kind of resembles surface tension.
Remarks:
- The image will be 2D/3D, with the signed distance to the surface of the spheres encoded as grayscale.
- It would be great if it is something that's already in Numpy / Scipy.
- I know that people do similiar stuff on meshes, but I'd like to have it as an image filter.
Example images (sorry for the different formats):