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

Function normalizeFrames

src/test/builders/colmapBuilders.ts:228–232  ·  view source on GitHub ↗
(frames: RigDataBuilderOptions['frames'])

Source from the content-addressed store, hash-verified

226}
227
228function normalizeFrames(frames: RigDataBuilderOptions['frames']): Map<number, Frame> {
229 if (!frames) return new Map();
230 if (frames instanceof Map) return frames;
231 return new Map(frames.map((frame) => [frame.frameId, frame]));
232}

Callers 1

buildRigDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected