OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
Video_hal_interface

详细描述

注意
定义您的函数以覆盖默认实现
#undef cv_hal_LK_optical_flow_level
#define cv_hal_LK_optical_flow_level my_hal_LK_optical_flow_level

函数

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... 的 Schaar 导数。
 

函数文档

◆ hal_ni_LKOpticalFlowLevel()

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,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * 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 )
inline

#include <video/src/hal_replacement.hpp>

Lucas-Kanade 光流用于单个金字塔层。 请参阅 calcOpticalFlowPyrLK。

注意
OpenCV 构建具有 win_size 填充的金字塔级别。 在 +-win_size 范围内,对源图像数据的越界访问是合法的。
参数
prev_data上一帧图像数据
prev_data_step上一帧图像数据步长
prev_deriv_data上一帧 Schaar 导数
prev_deriv_step上一帧 Schaar 导数步长
next_data下一帧图像数据
next_step下一帧图像步长
width输入图像宽度
height输入图像高度
cn源图像通道
prev_points前一帧上的 2d 点坐标 (x,y)
next_points下一帧上的点坐标 (x,y)
point_count- 输入点数量
status每个点的光流状态。 可选输出,如果提供了非 nullptr 则预期
err每个点的光流估计误差。 可选输出,如果提供了非 nullptr 则预期
win_width光流窗口宽度
win_height光流窗口高度
termination_count最大算法迭代次数。 0 表示无限制
termination_epsilon允许的最大算法误差
get_min_eigen_vals将最小特征值作为点误差返回到 err 缓冲区中
min_eigen_vals_threshold特征值阈值

◆ hal_ni_ScharrDeriv()

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 )
inline

#include <video/src/hal_replacement.hpp>

计算具有交错布局 xyxy... 的 Schaar 导数。

注意
OpenCV 构建具有 win_size 填充的金字塔级别。 在 +-win_size 范围内,对源图像数据的越界访问是合法的。
参数
src_data源图像数据
src_step源图像步长
dst_data目标缓冲区数据
dst_step目标缓冲区步长
width图像宽度
height图像高度
cn源图像通道