the pixels in an image are weighted with their intensity. we try to fit a pre-defined number of connected (partially overlapping) ellipses onto this image, using gmdistribution.fit from matlab's statistics toolbox.
i used this to separate ellipse-shaped objects (with a size of ~20 to 30 pixels per object) in a movie, when they come too close to simply 'blob' them apart.
see descriptions in exampleFindEllipses.m (example function) and fitMixGauss.m (the actual fitting function)
Georg D (2020). gaussian mix fit of multiple connected ellipses (https://www.mathworks.com/matlabcentral/fileexchange/32300-gaussian-mix-fit-of-multiple-connected-ellipses), MATLAB Central File Exchange. Retrieved .
Title, Summary and Description Text