Ask Your Question

Revision history [back]

c++ fitLine function does not work correctly for three input points!

In development environment of VS2010, opencv 2.4.11, and a C++ console program, I found a while ago that the fitLine function did not output a correct result, when just three 2D points are inputted to the function. The three input points were almost collinear, and I used a std::vector<point2f> for the input points, and a Vec4f for an output, however, the fitLine function surprisingly outputted a completely wrong result. I think this is a serious bug, could anyone answer this?