* 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>)
| 28 | * the fields relevant to their model (mirrors the helper in cameraUndistortion.test.ts). |
| 29 | */ |
| 30 | function 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 |
no outgoing calls
no test coverage detected