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 = calloc<cvg.VecF32>();
final locations = calloc<cvg.VecPoint>();
cvRun(
() => cffi.HOGDescriptor_Compute(
ref,
img.ref,
descriptors,
winStride.cvd.ref,
padding.cvd.ref,
locations,
),
);
return (
VecF32.fromPointer(descriptors),
VecPoint.fromPointer(locations),
);
}