MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / EyeAngle

Function EyeAngle

jni/stasm/startshape.cpp:447–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447double EyeAngle( // eye angle in degrees, INVALID if eye angle not available
448 const DetectorParameter& detpar) // in: detpar wrt the ROI
449{
450 double angle = 0;
451 if (Valid(detpar.lex) && Valid(detpar.rey)) // both eyes detected?
452 {
453 angle = RadsToDegrees(
454 -atan2(detpar.rey - detpar.ley,
455 detpar.rex - detpar.lex));
456 }
457 return angle;
458}
459
460double EyeAngle( // eye angle in degrees, INVALID if eye angle not available
461 const Shape& shape) // in

Callers 1

StartShapeAndRoiFunction · 0.85

Calls 4

ValidFunction · 0.85
RadsToDegreesFunction · 0.85
Shape17OrEmptyFunction · 0.85
PointUsedFunction · 0.85

Tested by

no test coverage detected