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

Function _prFactor

src/utils/cameraUndistortion.ts:65–71  ·  view source on GitHub ↗
(r2: number, i: CameraIntrinsics)

Source from the content-addressed store, hash-verified

63// FULL_OPENCV all coefficients → full rational form + tangential
64
65function _prFactor(r2: number, i: CameraIntrinsics): number {
66 const r4 = r2 * r2;
67 const r6 = r4 * r2;
68 const num = 1 + i.k1 * r2 + i.k2 * r4 + i.k3 * r6;
69 const den = 1 + i.k4 * r2 + i.k5 * r4 + i.k6 * r6;
70 return num / den - 1;
71}
72
73function _prDeriv(r2: number, i: CameraIntrinsics): number {
74 const r4 = r2 * r2;

Callers 2

forwardFunction · 0.85
inverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected