hbVPOpticalFlowPyrLK
-
Member
Sparse optical flow task parameter structure.
-
Member
Note
J6 has no lkof backend, use dsp backend.
The API for calling the OpticalFlowPyrLK.
- Parameter
- [out]
taskHandleTask handles are responsible for the interaction of the operator with the UCP architecture. - [out]
currPointsOutput feature point, memory element type is hbVPKeyPoint, memory size is datasize * sizeof(hbVPKeyPoint), size is the same as prevPoints's size. - [out]
currPointsStatustrack 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. - [out]
currPointsConfoptical flow confidence, dsp unsupport it, J6 DSP is not supported, it can be nullptr. - [in]
prevPointsThe feature point of the previous frame, with the same data type as currPoints. - [in]
currPymInput the pyramid layer of the current frame picture and needs to be consistent with the format of the previous frame. - [in]
prevPymInput the pyramid layer of the previous picture frame. The image format is HB_VP_IMAGE_FORMAT_Y or HB_VP_IMAGE_FORMAT_NV12, and the image type is HB_VP_IMAGE_TYPE_U8C1. - [in]
lkofParamThe sparse optical flow task parameter.
- [out]
- Return Value
- Return
0means the API was successfully executed, otherwise the execution failed.
- Return
