I am currently trying to determine the mean line of a 2D Point cloud .. and while I am doing so, I asked myself whether there is a solution for this in OpenCV or not? So that I just can push a vector with points and parameters to it and then get back the calculated mean-line?
Use fitLine function, it is based on weighted least-squares algorithm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With