MCPcopy Create free account
hub / github.com/colmap/colmap / get_error_thresholds

Function get_error_thresholds

benchmark/reconstruction/evaluation/utils.py:991–997  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

989
990
991def get_error_thresholds(args: argparse.Namespace) -> npt.NDArray[np.floating]:
992 if args.error_type.startswith("relative"):
993 return np.array(args.rel_error_thresholds)
994 elif args.error_type.startswith("absolute"):
995 return np.array(args.abs_error_thresholds)
996 else:
997 raise ValueError(f"Invalid error type: {args.error_type}")
998
999
1000def get_scores(error_type: str, metrics: Metrics) -> npt.NDArray[np.floating]:

Callers 1

process_scenesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected