stitching_FeaturesMatcher_apply

[32/64bit] stitching_FeaturesMatcher_apply

stitching_FeaturesMatcher_apply p1,p2,p3,p4,p5,p6,p7,p8,p9,p10

p1 = sptr : IntPtr obj
p2 = var : ref WImageFeatures features1
p3 = var : ref WImageFeatures features2
p4 = var : out int outSrcImgIdx
p5 = var : out int outDstImgIdx
p6 = sptr : IntPtr outMatches
p7 = sptr : IntPtr outInliersMask
p8 = var : out int outNumInliers
p9 = sptr : IntPtr outH
p10 = var : out double outConfidence

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

解説

元関数名(C#): stitching_FeaturesMatcher_apply
元DLLエクスポート名: stitching_FeaturesMatcher_apply
参照元CSファイル: Internal\PInvoke\NativeMethods\stitching\NativeMethods_stitching_Matchers.cs
▼ C言語側関数定義
CVAPI(ExceptionStatus) stitching_FeaturesMatcher_apply(
    cv::detail::FeaturesMatcher* obj,
    detail_ImageFeatures *features1,
    detail_ImageFeatures *features2,
    int *out_src_img_idx, 
    int *out_dst_img_idx,
    std::vector<cv::DMatch> *out_matches, 
    std::vector<uchar> *out_inliers_mask,
    int *out_num_inliers,
    cv::Mat *out_H,
    double *out_confidence)
{
    BEGIN_WRAP
    cv::detail::ImageFeatures features1Cpp{
        features1->img_idx,
        cpp(features1->img_size),
        *features1->keypoints,
        cv::UMat()
    };
    cv::detail::ImageFeatures features2Cpp{
        features2->img_idx,
        cpp(features2->img_size),
        *features2->keypoints,
        cv::UMat()
    };
    features1->descriptors->copyTo(features1Cpp.descriptors);
    features2->descriptors->copyTo(features2Cpp.descriptors);

    cv::detail::MatchesInfo result;
    (*obj)(features1Cpp, features2Cpp, result);

    *out_src_img_idx = result.src_img_idx;
    *out_dst_img_idx = result.dst_img_idx;
    std::copy(result.matches.begin(), result.matches.end(), std::back_inserter(*out_matches));
    std::copy(result.inliers_mask.begin(), result.inliers_mask.end(), std::back_inserter(*out_inliers_mask));
    *out_num_inliers = result.num_inliers;
    result.H.copyTo(*out_H);
    *out_confidence = result.confidence;
    END_WRAP
}

情報

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