Computes gradient
[grad, angleOfs] = hog.computeGradient(im)
[...] = hog.computeGradient(im, 'Option', optionValue, ...)
Input
- im 8-bit 1- or 3-channel source image.
Output
- grad gradient magnitudes (2-channel float matrix of same
size as the image plus padding).
- angleOfs quantized gradient orientation with integers in
the range
[0,NBins-1]
(2-channel 8-bit matrix of same
size as the image plus the padding).
Options
- paddingTL Optional padding. default [0,0]
- paddingBR Optional padding. default [0,0]