compute method
Computes HOG descriptors of given image.
https://docs.opencv.org/4.x/d5/d33/structcv_1_1HOGDescriptor.html#a38cd712cd5a6d9ed0344731fcd121e8b
Implementation
(VecF32 descriptors, VecPoint locations) compute(
Mat img, {
(int, int) winStride = (0, 0),
(int, int) padding = (0, 0),
}) {
final descriptors = VecF32();
final locations = VecPoint();
cvRun(
() => cobjdetect.cv_HOGDescriptor_compute(
ref,
img.ref,
descriptors.ptr,
winStride.cvd.ref,
padding.cvd.ref,
locations.ptr,
ffi.nullptr,
),
);
return (descriptors, locations);
}