|
@@ -4,7 +4,9 @@ using MathNet.Numerics.LinearAlgebra;
|
|
|
using MathNet.Numerics.LinearAlgebra.Double;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
using UnityEngine;
|
|
|
+using Random = System.Random;
|
|
|
|
|
|
namespace Assets.StreetLight.Scripts
|
|
|
{
|
|
@@ -29,9 +31,10 @@ namespace Assets.StreetLight.Scripts
|
|
|
|
|
|
var iterations = RansacIterations(0.35f, 4, 0.99f);
|
|
|
|
|
|
+ var random = new Random();
|
|
|
for (int i = 0; i < iterations; i++)
|
|
|
{
|
|
|
-
|
|
|
+ var sample = calibrationVectors.OrderBy(_ => random.Next()).Take(4);
|
|
|
}
|
|
|
}
|
|
|
|