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

Method getMaskSync

src/dataset/DatasetManager.ts:109–112  ·  view source on GitHub ↗

* Get a cached mask file synchronously. * For local source, masks are always available. * For url/zip, returns undefined if not fetched (masks are not pre-cached). * * @param imageName - Image name from COLMAP * @returns The cached File or undefined

(imageName: string)

Source from the content-addressed store, hash-verified

107 * @returns The cached File or undefined
108 */
109 getMaskSync(imageName: string): File | undefined {
110 const state = this.getState();
111 return this.getSourceAdapter(state)?.getMaskSync(state, imageName);
112 }
113
114 // ===========================================================================
115 // Batch Operations

Callers 6

useImageDetailFilesFunction · 0.80
buildGalleryImagesFunction · 0.80
useImageGalleryViewModelFunction · 0.80

Calls 1

getSourceAdapterMethod · 0.95

Tested by

no test coverage detected