imgproc_convexityDefects_Point

[32/64bit] 輪郭の凸型欠陥を求めます.

imgproc_convexityDefects_Point p1,p2,p3,p4,p5

p1 = var : Point[] contour
p2 = int : int contourLength
p3 = var : int[] convexHull
p4 = int : int convexHullLength
p5 = sptr : IntPtr convexityDefects

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

解説

下の図は、手の輪郭の凸部の欠陥を表示しています:image

元関数名(C#): imgproc_convexityDefects_Point
元DLLエクスポート名: imgproc_convexityDefects_Point
参照元CSファイル: Internal\PInvoke\NativeMethods\imgproc\NativeMethods_imgproc.cs
▼ C言語側関数定義
CVAPI(ExceptionStatus) imgproc_convexityDefects_Point(cv::Point *contour, int contourLength, int *convexHull, int convexHullLength,
                                           std::vector<cv::Vec4i> *convexityDefects)
{
    BEGIN_WRAP
    const cv::Mat_<cv::Point> contourMat(contourLength, 1, contour);
    const cv::Mat_<int> convexHullMat(convexHullLength, 1,  convexHull);
    cv::convexityDefects(contourMat, convexHullMat, *convexityDefects);
    END_WRAP
}

情報

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