MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / resolveUndistortionMode

Function resolveUndistortionMode

src/utils/undistortionMode.ts:21–29  ·  view source on GitHub ↗
(
  mode: UndistortionMode,
  modelId: CameraModelId
)

Source from the content-addressed store, hash-verified

19 * unaffected, and an explicit `cropped` choice is always preserved.
20 */
21export function resolveUndistortionMode(
22 mode: UndistortionMode,
23 modelId: CameraModelId
24): UndistortionMode {
25 if (mode === 'fullFrame' && isFisheyeCameraModel(modelId)) {
26 return 'cropped';
27 }
28 return mode;
29}

Callers 2

FrustumPlaneSurfaceFunction · 0.90

Calls 1

isFisheyeCameraModelFunction · 0.90

Tested by

no test coverage detected