BrownConradyEx#

class deltacamera.BrownConradyEx[source]#

Bases: LensDistortionModel

Brown-Conrady distortion model.

Requires 5, 8, 12, or 14 coefficients.

Coefficient layout:
  • 5 coeffs: k1, k2, p1, p2, k3

  • 8 coeffs: k1, k2, p1, p2, k3, k4, k5, k6

  • 12 coeffs: k1, k2, p1, p2, k3, k4, k5, k6, s1, s2, s3, s4

  • 14 coeffs: k1, k2, p1, p2, k3, k4, k5, k6, s1, s2, s3, s4, tau_x, tau_y

Where:
  • k1-k6: Radial distortion coefficients

  • p1, p2: Tangential distortion coefficients

  • s1-s4: Thin prism distortion coefficients

  • tau_x, tau_y: Tilt angles for the tilted sensor model

Static Methods#

transform_for_hflip(R, K, coeffs, imshape)

Transform R, K, and distortion coeffs for horizontal image flip.

transform_for_rotation(R, K, coeffs, angle, anchor)

Transform R, K, and distortion coeffs for image rotation.