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

Function getCameraModelColmapName

src/utils/cameraModelPolicy.ts:82–89  ·  view source on GitHub ↗
(modelId: CameraModelId)

Source from the content-addressed store, hash-verified

80}
81
82export function getCameraModelColmapName(modelId: CameraModelId): string {
83 // Delegates to the registry (single source of truth), but preserves this
84 // module's historical non-throwing fallback for out-of-registry ids — the
85 // registry's getCameraModelColmapName throws on an unknown id.
86 return isCameraModelId(modelId)
87 ? getRegistryCameraModelColmapName(modelId)
88 : `Unknown(${modelId})`;
89}
90
91export function isCameraModelId(value: unknown): value is CameraModelId {
92 return typeof value === 'number'

Callers 3

incompatibleFunction · 0.90
incompatibleFunction · 0.90

Calls 1

isCameraModelIdFunction · 0.85

Tested by

no test coverage detected