alternative for deprecated CalcOpticalFlowBM

asked 2018-05-11 10:33:39 -0600

tribol gravatar image

Hi, I want to calculate the optical flow for two images by using a block matching algorithm and discovered cv2.CalcOpticalFlowBM() such that I would like to make use of this function instead of trying to implement it on my own.

However on https://docs.opencv.org/2.4/modules/l... the function is in the "legacy. Deprecated stuff " category and I can't call it from OpenCV-3. For CalcOpticalFlowHS which is in the same category it says "The function is obsolete. To track sparse features, use calcOpticalFlowPyrLK()", however for CalcOpticalFlowBM() no such description is given. Is there any alternative blockmatching function in OpenCV I could use? Thanks a lot!

edit retag flag offensive close merge delete