Hi everyone,
before I ask my question let me first thank the ASP team (Oleg!) for the amazing support on this channel and a superb user manual that comes with ASP. Great job!
A colleague and I am working on converting Agisoft Metashape lens calibration files to the ASP .tsai PINHOLE/TSAI format. The Agisoft lens calibration files contain three radial distortion parameters (k1,k2,k3) and the ASP manual lists the AdjustableTSAI format for using Agisoft Metashape lens calibration parameters:
AdjustableTSAI
Radial Coeff: Vector3(1.31024e-04, 1.31024e-07, 1.31024e-08)
Tangential Coeff: Vector2(-2.05354e-07, 1.05354e-07)
Alpha: 0.4I have copy/pasted the above into a .tsai file in the second part of the .tsai file but ASP can't ingest the format. Any pointers what I am doing wrong?
ASP does not seem to mind an additional k3 parameter in a TSAI format file, but I am guessing k3 is not being used to calculate the lens distortion. This file, including k3, ingests without issues:
VERSION_4
PINHOLE
fu = 5227.633227844355
fv = 5227.633227844355
cu = 2459.238704269580
cv = 1622.801130607475
u_direction = 1 0 0
v_direction = 0 1 0
w_direction = 0 0 1
C = 0 0 0
R = 1 0 0 0 1 0 0 0 1
pitch = 1.0
TSAI
k1 = -0.094196634563
k2 = 0.115036424262
k3 = -0.032238313341
p1 = -0.000256622541
p2 = -0.000353613460
Does anyone have an example .tsai file in AdjustableTSAI format that I can use as a template?
Thanks for any help,
Michael