LeastSquaresTransform

Feb 20, 2008 at 3:26 PM
Hello,
I'm trying to use SharpMap.Utilities.LeastSquaresTransform.
I did this:
LeastSquaresTransform lst = new LeastSquaresTransform();
lst.AddInputOutputPoint(new Point(1, 1), new Point(1, 1));
lst.AddInputOutputPoint(new Point(2, 2), new Point(2, 2));
double[] tran = lst.GetHelmertTransformation();
foreach (double d in tran)
{
Console.WriteLine(d);
}

And I get this:
0 -1.0 double
1 0.0 double
2 2.0 double
3 2.0 double
4 1.4142135623730951 double
I think this is not correct.

Best Regards,
Jochen