Other Parts Discussed in Thread: TDA4VH
Tool/software:
Hi TI expert,
According to this link [FAQ] TDA4VM: How to create a LDC mesh LUT for fisheye distortion correction on TDA4? - Processors forum - Processors - TI E2E support forums, I get clear about LDC tunning process.
This is my understanding: 1) I need to prepare a LENS spec_file; 2) use the lens spec_file to generate mesh.txt file using the MATLAB script; 3) load the mesh.txt file in DCC and do off-line LDC tunning; 4) push the generated bin file into TDA4 to view result online.
And based on the process above, we have successfully done many LDC projects.
However, currently we met a requirement of LDC tunning based on calibrated camera intrinsics and distortion parameters (fisheye and pinhole models).
The method we currentlly adoppted is that we use the distortion parameters of k1-k4 to calculate a spec_file (theta vs real height table), and then to use MATLAB script to get mesh.txt. But in this way, we can only get satisefied result for fisheye distortion moded; the LDC result for pinhole model is not OK.
So, my questions are:
1. Is there a way to calculate mesh.txt file based on OpenCV fisheye/pinhole model, instead of using LENS spec_file?
2. Can the process of generating LDC.bin from xml and mesh.txt be done on TDA4VH board? Only in this way, we can dynamicly read sensor's intrinsics and distortion parameters online and generate proper LDC bin files.
Looking forward to you reply
best regards,
Jianxiong Hua