hi all.
i need to work with CvFitLine , but i can't find any examples of what it does.
basically i need to take a set of points (lets' say 3) , draw a line between them, and than i need for every point sum the distance of the point from the line the fitLine method is calculating. (to check if it's bigger than some constant).

anyone have any idea how to do this???

yes, i know i should use cvFitline();
but as i stated i'm not sure what this function does.
what does it returns? and how do i work with it?

yes, i know i should use cvFitline();
but as i stated i'm not sure what this function does.
what does it returns? and how do i work with it?

The link he provided describes everything you need. Also, this is a c++ forum, not an OpenCV forum. OpenCV has a very active yahoo group if you need help. However, most of any questions you have about OpenCV functionality can be answered by their extensive online documentation: http://opencv.willowgarage.com/wiki/. I use OpenCV extensively, and I visit that site at least once a day.