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

Function intr

src/utils/cameraUndistortion.test.ts:5–13  ·  view source on GitHub ↗
(partial: Partial<CameraIntrinsics>)

Source from the content-addressed store, hash-verified

3import { CameraModelId, type CameraIntrinsics } from '../types/colmap';
4
5function intr(partial: Partial<CameraIntrinsics>): CameraIntrinsics {
6 return {
7 fx: 1, fy: 1, cx: 0, cy: 0,
8 k1: 0, k2: 0, k3: 0, k4: 0, k5: 0, k6: 0,
9 p1: 0, p2: 0, omega: 0, sx1: 0, sy1: 0, sx2: 0, sy2: 0,
10 alpha: 0, beta: 0, kDiv: 0,
11 ...partial,
12 };
13}
14
15/** Sample normalized points on a disc of the given radius. */
16function disc(radius: number, rings = 5, spokes = 8): Vec2[] {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected