OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
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,
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 )
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_valserr バッファに点の誤差として最小固有値を返す
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ソース画像のチャンネル数