feature tracking assertion fail error
Hi,
I am trying to track feature using optical flow method. The features are corners extracted from fast as a gpu::GpuMat keypoints. The problem is that the call to "sparse" function fail with following error:
OpenCV Error: Assertion failed (prevPts.rows == 1 && prevPts.type() == CV32FC2) in unknown function, file H:\opencv\modules\gpu\src\pyrlk.cpp, line 114 CV error occured : C:\opencv\modules\gpu\src\pyrlk.cpp:114: error: (-215) prevPt s.rows == 1 && prevPts.type() == CV32FC2
I've checked that the previous keypoints that i am passing to it are non zero. Although i have two rows in gpu::GpuMat. Is that correct? Actually i tried the fast_GPU documentation but i couldn't understand "Location Row"/"Response Row". Even if i use only single row from it for passing to sparse, i still get the assertion. It is unclear how could i make the features points from fast to be compatible with optical flow function? Kindly help in this regard.
Best Regards,
I have checked from the documentation about the type of FASTGPU return type but it is not listed there. So then i have tried printing from the code and it returns '5' which means 'CV32F' . They are keypoints so shoudn't it be possible to pass them to pyrLK even though they have slightly different type?
Were you able to solve this issue ?