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

Function intr

src/utils/cameraModelOracles.test.ts:30–39  ·  view source on GitHub ↗

* Convenience builder — zeroes every unused coefficient so callers name only * the fields relevant to their model (mirrors the helper in cameraUndistortion.test.ts).

(partial: Partial<CameraIntrinsics>)

Source from the content-addressed store, hash-verified

28 * the fields relevant to their model (mirrors the helper in cameraUndistortion.test.ts).
29 */
30function intr(partial: Partial<CameraIntrinsics>): CameraIntrinsics {
31 return {
32 fx: 1, fy: 1, cx: 0, cy: 0,
33 k1: 0, k2: 0, k3: 0, k4: 0, k5: 0, k6: 0,
34 p1: 0, p2: 0, omega: 0,
35 sx1: 0, sy1: 0, sx2: 0, sy2: 0,
36 alpha: 0, beta: 0, kDiv: 0,
37 ...partial,
38 };
39}
40
41// ──────────────────────────────────────────────────────────────────────────────
42// EUCM oracle

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected