MCPcopy Create free account
hub / github.com/colmap/colmap / Distortion

Method Distortion

src/colmap/sensor/models.h:1365–1375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363
1364template <typename T>
1365void SimpleRadialCameraModel::Distortion(
1366 const T* extra_params, const T& u, const T& v, T* du, T* dv) {
1367 const T k = extra_params[0];
1368
1369 const T u2 = u * u;
1370 const T v2 = v * v;
1371 const T r2 = u2 + v2;
1372 const T radial = k * r2;
1373 *du = u * radial;
1374 *dv = v * radial;
1375}
1376
1377////////////////////////////////////////////////////////////////////////////////
1378// RadialCameraModel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected