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

Function normalizeMaskPath

src/parsers/maskZipExport.ts:12–18  ·  view source on GitHub ↗
(imageName: string)

Source from the content-addressed store, hash-verified

10 * "images/cam1/photo.jpg" -> "masks/cam1/photo.jpg.png".
11 */
12export function normalizeMaskPath(imageName: string): string {
13 let normalized = imageName.replace(/\\/g, '/');
14 if (normalized.startsWith('images/')) {
15 normalized = normalized.slice(7);
16 }
17 return `masks/${normalized}.png`;
18}
19
20export async function exportMasksZip(
21 imageNames: string[],

Callers 2

exportMasksZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected