| 1024 | } |
| 1025 | |
| 1026 | double ComputeNormalizedGuidedMatchingMaxResidual(const Camera& camera1, |
| 1027 | const Camera& camera2, |
| 1028 | const double max_error) { |
| 1029 | const double normalized_max_error1 = camera1.CamFromImgThreshold(max_error); |
| 1030 | const double normalized_max_error2 = camera2.CamFromImgThreshold(max_error); |
| 1031 | return 0.5 * (normalized_max_error1 * normalized_max_error1 + |
| 1032 | normalized_max_error2 * normalized_max_error2); |
| 1033 | } |
| 1034 | |
| 1035 | class SiftCPUFeatureMatcher : public FeatureMatcher { |
| 1036 | public: |
no test coverage detected