| 864 | } |
| 865 | |
| 866 | EYAW DegreesAsEyaw( // this determines what model is best for a given yaw |
| 867 | double yaw, // in: yaw in degrees, negative if left facing |
| 868 | int nmods) // in |
| 869 | { |
| 870 | #if MOD_3 || MOD_A || MOD_A_EMU // experimental versions |
| 871 | CV_Assert(nmods == 3); |
| 872 | if (yaw < -EYAW_TO_USE_DET45) |
| 873 | return EYAW_45; |
| 874 | |
| 875 | else if (yaw < -EYAW_TO_USE_DET22) |
| 876 | return EYAW_22; |
| 877 | |
| 878 | else if (yaw <= EYAW_TO_USE_DET22) |
| 879 | return EYAW00; |
| 880 | |
| 881 | else if (yaw <= EYAW_TO_USE_DET45) |
| 882 | return EYAW22; |
| 883 | |
| 884 | return EYAW45; |
| 885 | #endif |
| 886 | return EYAW00; |
| 887 | } |
| 888 | |
| 889 | const char* EyawAsString(EYAW eyaw) // utility for debugging/tracing |
| 890 | { |
no outgoing calls
no test coverage detected