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

Function createDefaultManifest

src/hooks/urlLoaderPolicy.ts:91–107  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

89}
90
91export function createDefaultManifest(baseUrl: string): ColmapManifest {
92 const cleanBaseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
93
94 return {
95 version: 1,
96 baseUrl: cleanBaseUrl,
97 files: {
98 cameras: 'sparse/0/cameras.bin',
99 images: 'sparse/0/images.bin',
100 points3D: 'sparse/0/points3D.bin',
101 rigs: 'sparse/0/rigs.bin',
102 frames: 'sparse/0/frames.bin',
103 },
104 imagesPath: 'images/',
105 masksPath: 'masks/',
106 };
107}
108
109function decodePathSegment(segment: string): string {
110 try {

Callers 3

useUrlLoaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected