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

Method ComputeSharedPoints

src/colmap/mvs/model.cc:219–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219std::vector<std::map<int, int>> Model::ComputeSharedPoints() const {
220 std::vector<std::map<int, int>> shared_points(images.size());
221 for (const auto& point : points) {
222 for (size_t i = 0; i < point.track.size(); ++i) {
223 const int image_idx1 = point.track[i];
224 for (size_t j = 0; j < i; ++j) {
225 const int image_idx2 = point.track[j];
226 if (image_idx1 != image_idx2) {
227 shared_points.at(image_idx1)[image_idx2] += 1;
228 shared_points.at(image_idx2)[image_idx1] += 1;
229 }
230 }
231 }
232 }
233 return shared_points;
234}
235
236std::vector<std::map<int, float>> Model::ComputeTriangulationAngles(
237 const float percentile) const {

Callers 2

ReadProblemsMethod · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by 1

TESTFunction · 0.64