37from visp.core
import Math, ImagePoint, ColVector, ThetaUVector, Point
40 Test that a function that was with signature
41 double lineFitting(const std::vector<...>& imPts, double& a, double& b, double& c)
42 is now (with custom configuration) with a signature lineFitting(imPts) -> tuple[double * 4]
44 all the reference parameters are used as outputs but not as inputs
50 ImagePoint(a*i+b, i)
for i
in range(3)
52 res = Math.lineFitting(points)
54 values = (res[0], -res[1] / res[2], res[3] / res[2])
56 for i, (val, exp)
in enumerate(zip(values, expected)):
58 assert val == approx(exp, 0.0001)