| 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
)
Public Overridable Sub ComputeGradient (
img As Mat,
grad As Mat,
angleOfs As Mat,
Optional paddingTL As Nullable(Of Size) = Nothing,
Optional paddingBR As Nullable(Of Size) = Nothing
)
public:
virtual void ComputeGradient(
Mat^ img,
Mat^ grad,
Mat^ angleOfs,
Nullable<Size> paddingTL = nullptr,
Nullable<Size> paddingBR = nullptr
)
abstract ComputeGradient :
img : Mat *
grad : Mat *
angleOfs : Mat *
?paddingTL : Nullable<Size> *
?paddingBR : Nullable<Size>
(* Defaults:
let _paddingTL = defaultArg paddingTL null
let _paddingBR = defaultArg paddingBR null
*)
-> unit
override ComputeGradient :
img : Mat *
grad : Mat *
angleOfs : Mat *
?paddingTL : Nullable<Size> *
?paddingBR : Nullable<Size>
(* Defaults:
let _paddingTL = defaultArg paddingTL null
let _paddingBR = defaultArg paddingBR null
*)
-> unit
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