Ask Your Question

Revision history [back]

Mean position of white pixels

Is there a built-in function in OpenCV to find the mean position of white pixels along each column? The goal is to draw a horizontal line as the boundary. Here is an approximate example: image description

Many thanks.