Camera Model Equations

I’m mostly concerned with the details of how these parms are used to undistort an image.

As this would help us integrate into a much larger pipeline.

DistortionModel = brown3t2
FocalLength35mm = 51.5750976017777
PrincipalPointU = 0.0208924261163548
PrincipalPointV = -0.00409728240298516
DistortionCoeficients = 0.141475756891208 -0.416891955868309 1.5343574037034 0 0.00675579173524334 0.000382884616231682

The confusing thing is the number of DistortionCoeficients as I would expect 5 not 6. ie K1, K2, K3, T1, T2

xd = xu (1 + K1 r^2 + K2 r^4 + K3 r^6) + (T2 (r^2 + 2 xu^2) + 2 T1 xu yu)
yd = yu (1 + K1 r^2 + K2 r^4 + K3 r^6) + (T1 (r^2 + 2 yu^2) + 2 T2 xu yu)

In the other case of DistortionModel = brown3 there is still 6 coefficients with the last 3 being set to 0 0 0? eg.

DistortionModel = brown3
FocalLength35mm= 48.360690057966
PrincipalPointU= -0.00029736149965627
PrincipalPointV= -0.00508353782437917
DistortionCoeficients = -0.0181569099033021 0.278771153561939 -0.846010943800427 0 0 0

I guess these first 3 coefficients are K1 K2 K3?

In the brown3t2 case is the 4 coefficients just a pad? ie.

DistortionCoeficients = 0.141475756891208 -0.416891955868309 1.5343574037034 0 0.00675579173524334 0.000382884616231682

K1 = 0.141475756891208
K2 = -0.416891955868309
K3 = 1.5343574037034
… = 0
T1 = 0.00675579173524334
T2 = 0.000382884616231682