Emgu CV Library Documentation
cvSolveCubic Method (coeffs, roots)
NamespacesEmgu.CVCvInvokecvSolveCubic(IntPtr, IntPtr)

www.emgu.com/wiki
finds real roots of a cubic equation: coeffs[0]*x^3 + coeffs[1]*x^2 + coeffs[2]*x + coeffs[3] = 0 (if coeffs is 4-element vector) or x^3 + coeffs[0]*x^2 + coeffs[1]*x + coeffs[2] = 0 (if coeffs is 3-element vector)
Declaration Syntax
C#Visual BasicVisual C++
public static int cvSolveCubic(
	IntPtr coeffs,
	IntPtr roots
)
Public Shared Function cvSolveCubic ( _
	coeffs As IntPtr, _
	roots As IntPtr _
) As Integer
public:
static int cvSolveCubic(
	IntPtr coeffs, 
	IntPtr roots
)
Parameters
coeffs (IntPtr)
The equation coefficients, array of 3 or 4 elements
roots (IntPtr)
The output array of real roots. Should have 3 elements. Padded with zeros if there is only one root
Return Value
the number of real roots found

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.5.0.0 (1.5.0.0)