* 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)
| 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. |
no test coverage detected