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

Function CreateReprojErrorData

benchmark/runtime/cost_functions.cc:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19static ReprojErrorData CreateReprojErrorData() {
20 ReprojErrorData data{
21 Rigid3d(Eigen::Quaterniond(0.9, 0.1, 0.1, 0.1), Eigen::Vector3d::Zero()),
22 Eigen::Vector3d(1, 2, 10),
23 Eigen::Vector2d(0.1, 0.2),
24 {1, 0, 0, 0.1},
25 };
26 CHECK_EQ(data.camera_params.size(), camera_model::num_params);
27 return std::move(data);
28}
29
30class BM_ReprojErrorCostFunction : public benchmark::Fixture {
31 public:

Calls 2

Rigid3dClass · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected