Add Mat profile wrapper in other areas of the library.

This commit is contained in:
Douglas Dawson
2018-11-18 15:22:14 -05:00
parent 71a026458f
commit 94247f8604
7 changed files with 35 additions and 11 deletions

View File

@@ -146,7 +146,7 @@ func (h *HOGDescriptor) DetectMultiScaleWithParams(img Mat, hitThresh float64,
// https://docs.opencv.org/master/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
//
func HOGDefaultPeopleDetector() Mat {
return Mat{p: C.HOG_GetDefaultPeopleDetector()}
return newMat(C.HOG_GetDefaultPeopleDetector())
}
// SetSVMDetector sets the data for the HOGDescriptor.