Computes gradients and quantized gradient orientations
[grad, angleOfs] = hog.computeGradient(im)
[...] = hog.computeGradient(im, 'OptionName', optionValue, ...)
Input
- im 8-bit 1- or 3-channel source image to be computed.
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 from top-left. default [0,0]
- paddingBR Optional padding from bottom-right. default [0,0]