kyamagu/mexopencv — pull request #68 by gnebehay (2013-04-25 16:44:11+00:00)
Title: Prevent calcOpticalFlowPyrLK from crashing on empty input

Currently, a call to calcOpticalFlowPyrLK() with prevpts = [] leads to an assertion failure in OpenCV, which terminates MATLAB. To me the preferable solution is not to call cv::calcOpticalFlowPyrLK() and to return an empty result.