How to use cuda::SparsePyrLKOpticalFlow in multi thread environment

Yes problem resolved by convert pixel format from CV_8U to CV_16U
frame.convertTo(shortFrame, CV_16U);

1 Like