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

Function makeCamera

src/utils/cameraModelConversions.test.ts:14–27  ·  view source on GitHub ↗
(
  modelId: CameraModelId,
  params: number[],
  width = 1920,
  height = 1080
)

Source from the content-addressed store, hash-verified

12
13// Helper to create test cameras
14function makeCamera(
15 modelId: CameraModelId,
16 params: number[],
17 width = 1920,
18 height = 1080
19): Camera {
20 return {
21 cameraId: 1,
22 modelId,
23 width,
24 height,
25 params,
26 };
27}
28
29describe('canConvertModel', () => {
30 describe('same model', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected