Click or drag to resize

HOGDescriptorComputeGradient Method

Computes gradients and quantized gradient orientations.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public virtual void ComputeGradient(
	Mat img,
	Mat grad,
	Mat angleOfs,
	Nullable<Size> paddingTL = null,
	Nullable<Size> paddingBR = null
)

Parameters

img
Type: OpenCvSharpMat
Matrix contains the image to be computed
grad
Type: OpenCvSharpMat
Matrix of type CV_32FC2 contains computed gradients
angleOfs
Type: OpenCvSharpMat
Matrix of type CV_8UC2 contains quantized gradient orientations
paddingTL (Optional)
Type: SystemNullableSize
Padding from top-left
paddingBR (Optional)
Type: SystemNullableSize
Padding from bottom-right
See Also