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

Function fetchZipImageRaw

src/utils/zipImageFiles.ts:84–93  ·  view source on GitHub ↗
(imageName: string)

Source from the content-addressed store, hash-verified

82 * Metric computations use this path because lossy cached images bias PSNR.
83 */
84export async function fetchZipImageRaw(imageName: string): Promise<File | null> {
85 if (!hasActiveZipArchive()) return null;
86
87 try {
88 return await extractZipImage(imageName);
89 } catch (err) {
90 appLogger.warn(`[ZIP Image] Error extracting raw ${imageName}:`, err);
91 return null;
92 }
93}
94
95/**
96 * Extract a mask from ZIP.

Callers 2

getMetricImageFunction · 0.90

Calls 2

hasActiveZipArchiveFunction · 0.85
extractZipImageFunction · 0.85

Tested by

no test coverage detected