I am using cvCalcOpticalFlowLK function in my code (OpenCV 2.4.1 and Ubuntu 12.04).
I am missing the header file for and getting this error:
opticalflowLK.c: In function ‘int main(int, char**)’:
opticalflowLK.c:33:67: error: ‘cvCalcOpticalFlowLK’ was not declared in this scope
Can anyone please tell me the header file for cvCalcOpticalFlowLK?
Thanks.
This function is deprecated that’s why you can’t use it.
c(notc++) you have to call cvCalcOpticalFlowPyrLK instead.c++than it’s better to use new OpenCV interface and call calcOpticalFlowPyrLK.Header for them is
opencv2/video/tracking.hpp.