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

Function buildCamera

src/test/builders/colmapBuilders.ts:52–64  ·  view source on GitHub ↗
(overrides: Partial<Camera> = {})

Source from the content-addressed store, hash-verified

50}
51
52export function buildCamera(overrides: Partial<Camera> = {}): Camera {
53 const width = overrides.width ?? 640;
54 const height = overrides.height ?? 480;
55
56 return {
57 cameraId: 1,
58 modelId: CameraModelId.PINHOLE,
59 width,
60 height,
61 params: [500, 500, width / 2, height / 2],
62 ...overrides,
63 };
64}
65
66export function buildPoint2D(overrides: Partial<Point2D> = {}): Point2D {
67 return {

Calls

no outgoing calls

Tested by 14

frustumItemFunction · 0.72
itemFunction · 0.72
createFacadeFunction · 0.72
sphericalItemFunction · 0.72
sphericalItemWithIdFunction · 0.72
buildFrustumFunction · 0.72
buildSphericalOptionsFunction · 0.72
frustumItemFunction · 0.72
buildFrustumGeometryItemFunction · 0.72
buildMixedReconstructionFunction · 0.72