Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this requires a strong laser pointer or a dark room. if you don't have that, the problem becomes harder.

binarize the picture. you can use simple thresholding on the grayscale picture.

then you calculate moments (cv::moments). the centroid of your blob would be the point (m10/m00, m01/m00)