Reputation: 117
I try to drow an arrowedLine on my image but i get an error. Please take a look on my code:
point1 = Point(x, y);
vect.push_back(point1);
for (int i = vect.size()-5; i>=0,i < vect.size() - 1; i++)
{
arrowedLine(cameraFeed,vect[i] , vect[i+1],Scalar(0, 255, 0), 1, 8, 0, 0.1);
}
ERROR: arrowedLine is undefined Which header should I include for this function?
Upvotes: 2
Views: 3660
Reputation: 41765
The function arrowedLine
is in:
imgproc.hpp
core.hpp
You can avoid this kind of problems with the include all: opencv.hpp
.
For OpenCV <= 2.4.9 you can write a custom function, based on OpenCV arrowedLine
Upvotes: 4