calcOpticalFlowPyrLK. Use pyramids instead of Image

asked 2013-10-15 05:50:08 -0600

tenta4 gravatar image

I try to use built pyramids in the calcOpticalFlowPyrLK function, but it wrote "Assertion failed (0 <= i && i < (int)v.size())"

Why it doesn't want? Documentation says prevImg – first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid().

edit retag flag offensive close merge delete

Comments

I solve this problem. It's cause i used OpenCV 2.4.0. This feature is available in version >= 2.4.5

tenta4 gravatar imagetenta4 ( 2013-10-15 13:30:33 -0600 )edit