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

Function makeImage

src/utils/sim3dNormalization.test.ts:91–100  ·  view source on GitHub ↗
(imageId: number, worldPosition: [number, number, number])

Source from the content-addressed store, hash-verified

89}
90
91function makeImage(imageId: number, worldPosition: [number, number, number]): Image {
92 return {
93 imageId,
94 qvec: [1, 0, 0, 0],
95 tvec: [-worldPosition[0], -worldPosition[1], -worldPosition[2]],
96 cameraId: 1,
97 name: `image-${imageId}.jpg`,
98 points2D: [],
99 };
100}
101
102function makePoint(point3DId: bigint, xyz: [number, number, number]): Point3D {
103 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected