core_perspectiveTransform_Point2f

[32/64bit] ベクトルの透視行列変換を行います.

core_perspectiveTransform_Point2f p1,p2,p3,p4,p5

p1 = sptr : IntPtr src
p2 = int : int srcLength
p3 = sptr : IntPtr dst
p4 = int : int dstLength
p5 = sptr : IntPtr m

(プラグイン / モジュール : OpenCvSharpExtern.dll)

解説

関数 cv::parkentTransform は, src の各要素を 2 次元または 3 次元のベクトルとして扱い,次のように変換します:?[(x, y, z)] ?[Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions], [Ictions].\ここでは、3次元ベクトル変換を示しています。2次元ベクトル変換の場合は,z成分が省略されています.注:この関数は,2次元または3次元ベクトルの疎な集合を変換します.透視変換を用いて画像を変換したい場合は, warpPerspective を利用してください.逆問題がある場合,つまり,対応する複数の点の組から最も確率の高い透視変換を計算したい場合は, getPerspectiveTransform や findHomography を利用できます.

元関数名(C#): core_perspectiveTransform_Point2f
元DLLエクスポート名: core_perspectiveTransform_Point2f
参照元CSファイル: Internal\PInvoke\NativeMethods\core\NativeMethods_core.cs
▼ C言語側関数定義
CVAPI(ExceptionStatus) core_perspectiveTransform_Point2f(cv::Point2f *src, int srcLength, cv::Point2f *dst, int dstLength, cv::_InputArray *m)
{
    BEGIN_WRAP
    const std::vector<cv::Point2f> srcVector(src, src + srcLength);
    std::vector<cv::Point2f> dstVector(dst, dst + dstLength);
    cv::perspectiveTransform(srcVector, dstVector, *m);
    END_WRAP
}

情報

プラグイン / モジュールOpenCvSharpExtern.dll
バージョン1.00
作成日2021/11/30
著作者inovia
URLhttps://hsp.moe/
備考#include "OpenCvSharpExtern32.as"
#include "OpenCvSharpExtern64.as"
使用するHSPランタイムのビット数に合わせたインクルードファイルを使用すること
タイプOpenCVSharpラッパーDLL
グループNativeMethods_core
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\OpenCvSharpExtern.hs