[32/64bit] 指定されたROIを評価し、各位置の信頼値を複数のスケールで返す
objdetect_HOGDescriptor_detectMultiScaleROI p1,p2,p3,p4,p5,p6,p7,p8
p1 = sptr : IntPtr obj p2 = sptr : IntPtr img p3 = sptr : IntPtr foundLocations p4 = sptr : IntPtr roiScales p5 = sptr : IntPtr roiLocations p6 = sptr : IntPtr roiConfidences p7 = double : double hitThreshold p8 = int : int groupThreshold
(プラグイン / モジュール : OpenCvSharpExtern.dll)
元関数名(C#): objdetect_HOGDescriptor_detectMultiScaleROI 元DLLエクスポート名: objdetect_HOGDescriptor_detectMultiScaleROI 参照元CSファイル: Internal\PInvoke\NativeMethods\objdetect\NativeMethods_objdetect_HOGDescriptor.cs ▼ C言語側関数定義
CVAPI(ExceptionStatus) objdetect_HOGDescriptor_detectMultiScaleROI(
cv::HOGDescriptor *obj, cv::Mat *img, std::vector<cv::Rect> *foundLocations,
std::vector<double> *roiScales, std::vector<std::vector<cv::Point> > *roiLocations, std::vector<std::vector<double> > *roiConfidences,
double hitThreshold, int groupThreshold)
{
BEGIN_WRAP
std::vector<cv::DetectionROI> locations;
obj->detectMultiScaleROI(*img, *foundLocations, locations, hitThreshold, groupThreshold);
roiScales->resize(locations.size());
roiLocations->resize(locations.size());
roiConfidences->resize(locations.size());
for (size_t i = 0; i < locations.size(); i++)
{
(*roiScales)[i] = locations[i].scale;
(*roiLocations)[i] = locations[i].locations;
(*roiConfidences)[i] = locations[i].confidences;
}
END_WRAP
}
| プラグイン / モジュール | OpenCvSharpExtern.dll |
| バージョン | 1.00 |
| 作成日 | 2021/11/30 |
| 著作者 | inovia |
| URL | https://hsp.moe/ |
| 備考 | #include "OpenCvSharpExtern32.as"
#include "OpenCvSharpExtern64.as" 使用するHSPランタイムのビット数に合わせたインクルードファイルを使用すること |
| タイプ | OpenCVSharpラッパーDLL |
| グループ | NativeMethods_objdetect_HOGDescriptor |
| 対応環境 |
|
| hs ファイル | hsphelp\OpenCvSharpExtern.hs |