| 202 | } |
| 203 | |
| 204 | void PrintComparisonSummary(std::ostream& out, |
| 205 | const std::vector<ImageAlignmentError>& errors) { |
| 206 | if (errors.empty()) { |
| 207 | out << "Cannot extract error statistics from empty input\n"; |
| 208 | return; |
| 209 | } |
| 210 | AlignmentErrorSummary summary = AlignmentErrorSummary::Compute(errors); |
| 211 | out << "\nRotation errors (degrees)\n"; |
| 212 | PrintErrorStats(out, summary.rotation_errors_deg); |
| 213 | out << "\nProjection center errors\n"; |
| 214 | PrintErrorStats(out, summary.proj_center_errors); |
| 215 | } |
| 216 | |
| 217 | } // namespace |
| 218 |
no test coverage detected