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

Method getMask

src/dataset/DatasetManager.ts:96–99  ·  view source on GitHub ↗

* Get a mask file for an image (async). * Handles local/url/zip internally based on source type. * * @param imageName - Image name from COLMAP (e.g., "camera_123/00.png") * @returns The mask File or null if not found/failed

(imageName: string)

Source from the content-addressed store, hash-verified

94 * @returns The mask File or null if not found/failed
95 */
96 async getMask(imageName: string): Promise<File | null> {
97 const state = this.getState();
98 return await (this.getSourceAdapter(state)?.getMask(state, imageName) ?? Promise.resolve(null));
99 }
100
101 /**
102 * Get a cached mask file synchronously.

Callers 6

useImageDetailFilesFunction · 0.80
prepareSplatPsnrImageFunction · 0.80
ExportPanel.tsxFile · 0.80

Calls 2

getSourceAdapterMethod · 0.95
resolveMethod · 0.65

Tested by

no test coverage detected