calcOpticalFlowPyrLK. Use pyramids instead of 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().
I solve this problem. It's cause i used OpenCV 2.4.0. This feature is available in version >= 2.4.5