MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getPoints2D

Function getPoints2D

src/parsers/colmapTextWriters.ts:39–45  ·  view source on GitHub ↗
(img: Image)

Source from the content-addressed store, hash-verified

37 const lines: string[] = [];
38
39 const getPoints2D = (img: Image): Point2D[] => {
40 if (img.points2D.length > 0) return img.points2D;
41 if (wasmReconstruction) {
42 return wasmReconstruction.getImagePoints2DArray(img.imageId);
43 }
44 return [];
45 };
46
47 let totalObs = 0;
48 for (const img of images.values()) {

Callers 1

writeImagesTextFunction · 0.85

Calls 1

getImagePoints2DArrayMethod · 0.80

Tested by

no test coverage detected