🤖
AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は
公式英語版(原文) を参照してください。
[77] の動的な制御点抽出を用いて「RAPID-a video rate object tracker」 [120] を実装する
|
| void | cv::rapid::convertCorrespondencies (InputArray cols, InputArray srcLocations, OutputArray pts2d, InputOutputArray pts3d=noArray(), InputArray mask=noArray()) |
| |
| void | cv::rapid::drawCorrespondencies (InputOutputArray bundle, InputArray cols, InputArray colors=noArray()) |
| |
| void | cv::rapid::drawSearchLines (InputOutputArray img, InputArray locations, const Scalar &color) |
| |
| void | cv::rapid::drawWireframe (InputOutputArray img, InputArray pts2d, InputArray tris, const Scalar &color, int type=LINE_8, bool cullBackface=false) |
| |
| void | cv::rapid::extractControlPoints (int num, int len, InputArray pts3d, InputArray rvec, InputArray tvec, InputArray K, const Size &imsize, InputArray tris, OutputArray ctl2d, OutputArray ctl3d) |
| |
| void | cv::rapid::extractLineBundle (int len, InputArray ctl2d, InputArray img, OutputArray bundle, OutputArray srcLocations) |
| |
| void | cv::rapid::findCorrespondencies (InputArray bundle, OutputArray cols, OutputArray response=noArray()) |
| |
| float | cv::rapid::rapid (InputArray img, int num, int len, InputArray pts3d, InputArray tris, InputArray K, InputOutputArray rvec, InputOutputArray tvec, double *rmsd=0) |
| |
◆ convertCorrespondencies()
| Python: |
|---|
| cv.rapid.convertCorrespondencies( | cols, srcLocations[, pts2d[, pts3d[, mask]]] | ) -> | pts2d, pts3d |
#include <opencv2/rapid.hpp>
対応関係とマスクに基づいて、対応する2次元点と3次元点を収集する
- 引数
-
| cols | line-bundle空間における各ラインの対応位置 |
| srcLocations | 入力画像上の位置 |
| pts2d | 2次元の点 |
| pts3d | 3次元の点 |
| mask | 保持する要素に対して非ゼロ値を含むマスク |
◆ drawCorrespondencies()
| Python: |
|---|
| cv.rapid.drawCorrespondencies( | bundle, cols[, colors] | ) -> | bundle |
#include <opencv2/rapid.hpp>
マッチした対応点のマーカーを lineBundle 上に描画するデバッグ用関数
- 引数
-
| bundle | lineBundle |
| cols | line bundle内の列座標 |
| colors | マーカーの色。デフォルトは白。 |
◆ drawSearchLines()
| Python: |
|---|
| cv.rapid.drawSearchLines( | img, locations, color | ) -> | img |
#include <opencv2/rapid.hpp>
探索線を画像上に描画するデバッグ用関数
- 引数
-
| img | 出力画像 |
| locations | line bundleの入力側の位置 |
| color | ラインの色 |
◆ drawWireframe()
| Python: |
|---|
| cv.rapid.drawWireframe( | img, pts2d, tris, color[, type[, cullBackface]] | ) -> | img |
◆ extractControlPoints()
| Python: |
|---|
| cv.rapid.extractControlPoints( | num, len, pts3d, rvec, tvec, K, imsize, tris[, ctl2d[, ctl3d]] | ) -> | ctl2d, ctl3d |
#include <opencv2/rapid.hpp>
メッシュの投影シルエットから制御点を抽出する
[77] の 2.1 節、ステップ b を参照
- 引数
-
| num | 制御点の数 |
| len | 探索半径(ROIを制限するために使用) |
| pts3d | メッシュの3次元の点 |
| rvec | メッシュとカメラ間の回転 |
| tvec | メッシュとカメラ間の並進 |
| K | カメラ内部パラメータ |
| imsize | ビデオフレームのサイズ |
| tris | 三角形面の接続情報 |
| ctl2d | 制御点の2次元位置 |
| ctl3d | メッシュの対応する3次元の点 |
◆ extractLineBundle()
| Python: |
|---|
| cv.rapid.extractLineBundle( | len, ctl2d, img[, bundle[, srcLocations]] | ) -> | bundle, srcLocations |
#include <opencv2/rapid.hpp>
画像から線バンドルを抽出する
- 引数
-
| len | 探索半径。バンドルは 2*len + 1 列を持つ。 |
| ctl2d | 探索線はこれらの点を中心とし、それらが定義する輪郭に直交する。バンドルは同じ数の行を持つ。 |
| img | ピクセル強度値を読み取る対象の画像 |
| bundle | サイズが ctl2d.rows() x (2 * len + 1) で img と同じ型を持つ線バンドル画像 |
| srcLocations | img における bundle のソースピクセル位置(CV_16SC2 形式) |
◆ findCorrespondencies()
| Python: |
|---|
| cv.rapid.findCorrespondencies( | bundle[, cols[, response]] | ) -> | cols, response |
#include <opencv2/rapid.hpp>
探索線(バンドル内の1行)に沿って最大の Sobel エッジを探索することにより、対応する画像位置を見つける
- 引数
-
| bundle | 線バンドル |
| cols | line-bundle空間における各ラインの対応位置 |
| response | 選択した点に対する Sobel 応答 |
◆ rapid()
| Python: |
|---|
| cv.rapid.rapid( | img, num, len, pts3d, tris, K, rvec, tvec | ) -> | retval, rvec, tvec, rmsd |