views:

43

answers:

1

Hello everyone! I am working on a program using the OpenCV library (though I am quite a noob on it). One of the things I need to do is to draw on the image. I looked at the OpenCV drawing functions and they all seem pretty simple (Circle, Line, etc), however the program won't compile! It says this to be exact: error C3861: 'Line': identifier not found. Is there something I haven't installed? I used the tutorial on http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2008 to install OpenCV on Visual Studio 2008 and so far this is the only real problem I have. Please help me! I need this program working as soon as possible!

+3  A: 

The function to draw a line in the OpenCV C API is named cvLine, not Line.

Phil Ross
Ok... That was easy. Nothing was said in the site -_- http://opencv.willowgarage.com/documentation/python/drawing_functions.htmlThank you very much!
Juls
@Juls The link you posted is for the Python documentation, which is why the function names are different.
Phil Ross
+1 Accurate. Juls, don't forget to vote up on his answer or accept it as the official solution.
karlphillip
In OpenCV 2 it's `cv::line`
Geoff