Feature point structure.
Member
| Member Name | Description |
|---|---|
x | The x-coordinate of the feature point. |
y | The y-coordinate of the feature point. |
Sparse optical flow task parameter structure.
Member
| Member Name | Description |
|---|---|
pyrLevels | The number of pyramid layers used for tcalculation. |
winSize | The size of the optical flow window in the range of value is 3 ~ 23 and is an odd number, and the optical flow window size needs to be larger than the corner detection window size. |
criteriaEpsilon | The optimization termination threshold takes values in the range of value is 0 ~ 255. |
maxIteration | The maximum number of iterations takes values in the range of value is 1 ~ 10. |
minEigThreshold | The minimum eigen value threshold. |
confEnable | Confidence output switch,non zero: enable, zero: disable, j6 is not supported, use default value |
J6 has no lkof backend, use dsp backend.
The API for calling the OpticalFlowPyrLK.
taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.currPoints Output feature point, Memory element type is hbVPKeyPoint, memory size is datasize * sizeof(hbVPKeyPoint), size is the same as prevPoints's size.currPointsStatus track point status,0: inconvergent, 1: convergence, memory element type is uint8_t, memory size is size * sizeof(uint8_t), size is the same as currPoints.currPointsConf optical flow confidence, dsp unsupport it, J6 DSP is not supported, it can be nullptr.currPym Input the pyramid layer of the current frame picture and needs to be consistent with the format of the previous frame.prevPym Input the pyramid layer of the previous picture frame.prevPoints The feature point of the previous frame.lkofParam The sparse optical flow task parameter.0 means the API was successfully executed, otherwise the execution failed.