mirror of
https://github.com/hybridgroup/gocv
synced 2025-08-25 08:41:04 +08:00
62 lines
1.8 KiB
C
62 lines
1.8 KiB
C
#ifndef _OPENCV3_GPU_H_
|
|
#define _OPENCV3_GPU_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
#include <opencv2/opencv.hpp>
|
|
#include <opencv2/core/cuda.hpp>
|
|
#include <opencv2/cudaobjdetect.hpp>
|
|
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "../core.h"
|
|
#include "cuda.h"
|
|
|
|
#ifdef __cplusplus
|
|
typedef cv::Ptr<cv::cuda::CascadeClassifier>* CascadeClassifier_GPU;
|
|
typedef cv::Ptr<cv::cuda::HOG>* HOG;
|
|
#else
|
|
typedef void* CascadeClassifier_GPU;
|
|
typedef void* HOG;
|
|
#endif
|
|
|
|
// CascadeClassifier
|
|
CascadeClassifier_GPU CascadeClassifier_GPU_Create(const char* cascade_name);
|
|
struct Rects CascadeClassifier_GPU_DetectMultiScale(CascadeClassifier_GPU cs, GpuMat img);
|
|
|
|
// HOG
|
|
HOG HOG_Create();
|
|
HOG HOG_CreateWithParams(Size winSize, Size blockSize, Size blockStride, Size cellSize, int nbins);
|
|
struct Rects HOG_DetectMultiScale(HOG hog, GpuMat img);
|
|
GpuMat HOG_Compute(HOG hog, GpuMat img);
|
|
Mat HOG_GetPeopleDetector(HOG hog);
|
|
void HOG_SetSVMDetector(HOG hog, Mat det);
|
|
int HOG_GetDescriptorFormat(HOG hog);
|
|
size_t HOG_GetBlockHistogramSize(HOG hog);
|
|
size_t HOG_GetDescriptorSize(HOG hog);
|
|
bool HOG_GetGammaCorrection(HOG hog);
|
|
int HOG_GetGroupThreshold(HOG hog);
|
|
double HOG_GetHitThreshold(HOG hog);
|
|
double HOG_GetL2HysThreshold(HOG hog);
|
|
int HOG_GetNumLevels(HOG hog);
|
|
double HOG_GetScaleFactor(HOG hog);
|
|
double HOG_GetWinSigma(HOG hog);
|
|
struct Size HOG_GetWinStride(HOG hog);
|
|
void HOG_SetDescriptorFormat(HOG hog, int descrFormat);
|
|
void HOG_SetGammaCorrection(HOG hog, bool gammaCorrection);
|
|
void HOG_SetGroupThreshold(HOG hog, int groupThreshold);
|
|
void HOG_SetHitThreshold(HOG hog, double hitThreshold);
|
|
void HOG_SetL2HysThreshold(HOG hog, double thresholdL2hys);
|
|
void HOG_SetNumLevels(HOG hog, int nlevels);
|
|
void HOG_SetScaleFactor(HOG hog, double scale0);
|
|
void HOG_SetWinSigma(HOG hog, double winSigma);
|
|
void HOG_SetWinStride(HOG hog, Size dsize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //_OPENCV3_GPU_H_
|