(baseUrl: string)
| 89 | } |
| 90 | |
| 91 | export 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 | |
| 109 | function decodePathSegment(segment: string): string { |
| 110 | try { |
no outgoing calls
no test coverage detected