MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / exportAndReparse

Function exportAndReparse

src/parsers/align_save.test.ts:81–88  ·  view source on GitHub ↗
(transformed: Reconstruction)

Source from the content-addressed store, hash-verified

79}
80
81function exportAndReparse(transformed: Reconstruction) {
82 const ptBuf = writePoints3DBinary(transformed.points3D!);
83 const imgBuf = writeImagesBinary(transformed.images, null);
84 return {
85 points: parsePoints3DBinary(ptBuf),
86 images: parseImagesBinary(imgBuf),
87 };
88}
89
90describe('1-point center: exported data places the picked point at origin', () => {
91 it('translates the picked point to (0,0,0)', () => {

Callers 1

align_save.test.tsFile · 0.85

Calls 4

parsePoints3DBinaryFunction · 0.90
parseImagesBinaryFunction · 0.90
writePoints3DBinaryFunction · 0.85
writeImagesBinaryFunction · 0.85

Tested by

no test coverage detected