![]() |
OpenCV 4.11.0
开源计算机视觉库
|
函数 | |
| int | hal_ni_LKOpticalFlowLevel (const uchar *prev_data, size_t prev_data_step, const short *prev_deriv_data, size_t prev_deriv_step, const uchar *next_data, size_t next_step, int width, int height, int cn, const float *prev_points, float *next_points, size_t point_count, uchar *status, float *err, const int win_width, const int win_height, int termination_count, double termination_epsilon, bool get_min_eigen_vals, float min_eigen_vals_threshold) |
| 单金字塔层Lucas-Kanade光流。参见calcOpticalFlowPyrLK。 | |
| int | hal_ni_ScharrDeriv (const uchar *src_data, size_t src_step, short *dst_data, size_t dst_step, int width, int height, int cn) |
| 计算具有交错布局xyxy…的Scharr导数。 | |
|
内联 |
#include <video/src/hal_replacement.hpp>
单金字塔层Lucas-Kanade光流。参见calcOpticalFlowPyrLK。
| prev_data | 前一帧图像数据 |
| prev_data_step | 前一帧图像数据步长 |
| prev_deriv_data | 前一帧Scharr导数 |
| prev_deriv_step | 前一帧Scharr导数步长 |
| next_data | 下一帧图像数据 |
| next_step | 下一帧图像步长 |
| width | 输入图像宽度 |
| height | 输入图像高度 |
| cn | 源图像通道数 |
| prev_points | 前一帧上的二维点坐标 (x,y) |
| next_points | 下一帧上的点坐标 (x,y) |
| point_count | - 输入点数 |
| status | 每个点的光流状态。可选输出,如果提供非空指针则预期。 |
| err | 每个点的光流估计误差。可选输出,如果提供非空指针则预期。 |
| win_width | 光流窗口宽度 |
| win_height | 光流窗口高度 |
| termination_count | 最大算法迭代次数。0表示无限次。 |
| termination_epsilon | 最大允许算法误差 |
| get_min_eigen_vals | 将最小特征值作为点误差返回到err缓冲区 |
| min_eigen_vals_threshold | 特征值阈值 |
|
内联 |
#include <video/src/hal_replacement.hpp>
计算具有交错布局xyxy…的Scharr导数。
| src_data | 源图像数据 |
| src_step | 源图像步长 |
| dst_data | 目标缓冲区数据 |
| dst_step | 目标缓冲区步长 |
| width | 图像宽度 |
| height | 图像高度 |
| cn | 源图像通道数 |