MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / normalizeRigs

Function normalizeRigs

src/test/builders/colmapBuilders.ts:222–226  ·  view source on GitHub ↗
(rigs: RigDataBuilderOptions['rigs'])

Source from the content-addressed store, hash-verified

220}
221
222function normalizeRigs(rigs: RigDataBuilderOptions['rigs']): Map<number, Rig> {
223 if (!rigs) return new Map();
224 if (rigs instanceof Map) return rigs;
225 return new Map(rigs.map((rig) => [rig.rigId, rig]));
226}
227
228function normalizeFrames(frames: RigDataBuilderOptions['frames']): Map<number, Frame> {
229 if (!frames) return new Map();

Callers 1

buildRigDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected