Allow neg. angle

This commit is contained in:
Tim Zeuner 2023-02-01 17:35:52 +01:00
parent 6692a2fcda
commit 7814f64873

View File

@ -144,6 +144,10 @@ void Processing::calcAngles(FrameData &data, int imageColums, int imageRows, boo
LFRVector b(contourCenter-focusPoint);
double angle = a.angle(b);
if (b.x < 0.0)
{
angle *= -1.0;
}
//Write to Data
data.angle = angle;