I want to modify the Pyramidal LK Optical Flow VPI Sample to fill my needs.
I only want to use the Optical flow sample, I don’t need Harris point detector as i already have a payload containing keypoints. I can’t find a way to enter my keypoints payload in the optical flow function : vpiSubmitOpticalFlowPyrLK()
I need to edit the data in a VPIArray, but i didn’t find how to do it. I can read the data using
vpiArrayLock(arrPrevPts, VPI_LOCK_READ_WRITE, &prevPtsData);
and get the value in the VPIArrayData prevPtsData. Writting on a VPIArrayData with VPILockMode VPI_LOCK_READ_WRITE and VPI_LOCK_WRITE doesn’t seems to write data in the VPIArray.
I tried the vpiArraySetWrappedHostMem function but didn’t get any result.
I just need to regularly send keypoints into the optical flow algorithm.
Thank you in advance.