CvSolveCubic Method OpenCvSharp Class Library
Finds real roots of a cubic equation

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int SolveCubic(
	CvMat coeffs,
	CvMat roots
)

Parameters

coeffs
Type: OpenCvSharpCvMat
The equation coefficients, array of 3 or 4 elements.
roots
Type: OpenCvSharpCvMat
The output array of real roots. Should have 3 elements.

Return Value

Type: Int32
the number of real roots found.
See Also

Reference