Skip to content

Commit

Permalink
fixed BuildEquidistantMatrix in case there is full 360° measurement d…
Browse files Browse the repository at this point in the history
…ata (#4855)
  • Loading branch information
luithefirst committed Jul 16, 2024
1 parent b2eea00 commit 315b48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Aardvark.Data.Photometry/LightMeasurementData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ private Matrix<double> FixNonEquidistantAngleStep(double[] angles, Matrix<double
var valuesPerPlane = data.SX;
var planeCount = data.SY;

var elementCount = (long)((AngleDifference(angles[angles.Length - 1], angles[0])) / minStep) + 1;
var angleRange = angles[angles.Length - 1] - angles[0];
var elementCount = (long)(angleRange / minStep) + 1;

if (elementCount >= 4096)
{
Expand Down

0 comments on commit 315b48c

Please sign in to comment.