Table of Contents

Method ComputeGradient

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ComputeGradient(Mat, Mat, Mat, Size?, Size?)

Computes gradients and quantized gradient orientations.

public virtual void ComputeGradient(Mat img, Mat grad, Mat angleOfs, Size? paddingTL = null, Size? paddingBR = null)

Parameters

img Mat

Matrix contains the image to be computed

grad Mat

Matrix of type CV_32FC2 contains computed gradients

angleOfs Mat

Matrix of type CV_8UC2 contains quantized gradient orientations

paddingTL Size?

Padding from top-left

paddingBR Size?

Padding from bottom-right