Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Approximating a set of points from a binary image

My task is to plot a line that reppresents the approximation (linerar I guess) to a set of points. Example: image description -draw a line that best fits the white points from this image. I am aware of functions such as fitLine but how can I use them when I represent images as Mat?

Approximating a set of points from a binary image

My task is to plot a line that reppresents the approximation (linerar I guess) to a set of points. Example: image description -draw a line that best fits the white points from this image. I am aware of functions such as fitLine but how can I use them when I represent images as Mat?