🤖
AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は
公式英語版(原文) を参照してください。
- 覚え書き
- デフォルトの実装をオーバーライドする独自の関数を定義する:
#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_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 | ソース画像のチャンネル数 |