I am relatively new to OpenCV and I do not have strong image processing. I am currently working on a project to write a program to count all biological cells from a microscope in an image. I tried various methods from online sources to apply image counting, but none of them worked well as expected.
Some of the methods I use are:
- Search for outlines of the filtered image. (does not work well with nearby cells)
- Gaussian blur and detection of local maxima in the image. (same problem as 1)
- Canny Edge Detection (output determines a non-segmented segment)
This is an example image in which I need to count the total number of cells.

My current counting algorithm works better if the cells are not close to each other. For example, for example:

However, the algorithm still does not separate 3 cells that stick together in the center of the image.
So, what could I do to detect the total number of cells in the image with the least false negative / positive?
c ++ opencv cell counting
Woody
source share