computeGradient method
(Mat, Mat)
computeGradient(
- InputArray img, {
- (int, int) paddingTL = (0, 0),
- (int, int) paddingBR = (0, 0),
Computes gradients and quantized gradient orientations.
https://docs.opencv.org/4.x/d5/d33/structcv_1_1HOGDescriptor.html#a1f76c51c08d69f2b8a0f079efc4bd093
Implementation
(Mat grad, Mat angleOfs) computeGradient(
InputArray img, {
(int, int) paddingTL = (0, 0),
(int, int) paddingBR = (0, 0),
}) {
final grad = Mat.empty();
final angleOfs = Mat.empty();
cvRun(
() => cffi.HOGDescriptor_computeGradient(
ref,
img.ref,
grad.ref,
angleOfs.ref,
paddingTL.cvd.ref,
paddingBR.cvd.ref,
),
);
return (grad, angleOfs);
}