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

Function exportReconstructionText

src/parsers/writers.ts:101–115  ·  view source on GitHub ↗
(
  reconstruction: Reconstruction,
  wasmReconstruction?: WasmReconstructionWrapper | null
)

Source from the content-addressed store, hash-verified

99 * @param wasmReconstruction - Optional WASM wrapper (used to build points3D if not in reconstruction)
100 */
101export function exportReconstructionText(
102 reconstruction: Reconstruction,
103 wasmReconstruction?: WasmReconstructionWrapper | null
104): void {
105 const points3D = getPoints3DForExport(reconstruction, wasmReconstruction);
106 const { rigs, frames } = reconstruction.rigData ?? {};
107
108 exportReconstructionTextFiles({
109 writeCameras: () => writeCamerasText(reconstruction.cameras),
110 writeImages: () => writeImagesText(reconstruction.images, wasmReconstruction),
111 writePoints3D: () => writePoints3DText(points3D),
112 writeRigs: rigs && rigs.size > 0 ? () => writeRigsText(rigs) : undefined,
113 writeFrames: frames && frames.size > 0 ? () => writeFramesText(frames) : undefined,
114 });
115}
116
117/**
118 * Export full reconstruction to COLMAP binary format.

Callers

nothing calls this directly

Calls 7

getPoints3DForExportFunction · 0.90
writeCamerasTextFunction · 0.90
writeImagesTextFunction · 0.90
writePoints3DTextFunction · 0.90
writeRigsTextFunction · 0.90
writeFramesTextFunction · 0.90

Tested by

no test coverage detected