invalid argument cv::cuda::SparseOpticalFlow::calc
version opencv-3.2.0 2.code: cv::cuda::GpuMat gpu_corners, status;
cv::cuda::GpuMat gpu_gray_roi = gray(rect); _gpu_corners_detector->detect(gpu_gray_roi, gpu_corners); _gpu_optical_flow->calc(gpu_gray_roi, gpu_gray_roi, gpu_corners, gpu_corners, status);error: OpenCV Error: Gpu API call (invalid argument) in cv::cuda::device::bindTexture, file C:\Users\TC\Desktop\opencv-3.2.0\modules\core\include\opencv2/core/cuda/common.hpp, line 102
My question is wath type should the argument be?