This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Questions about LDC output image in DCC of TDA4

Part Number: TDA4VM

Hi TI experts,

The mesh lut files was generated follow the step of the case [FAQ] TDA4VM: How to create a LDC mesh LUT for fisheye distortion correction on TDA4?, however, I found that the output image of LDC has one problem, the last line of the image is messy green, as shown in figure below:

   

do you know what cause this?

another question is that the YUV image saved by DCC is not processed by LDC, is that normal?

The xml file  is attached here for check:

6761.OVX3C-MAX9295_MARS_mesh_ldc_dcc.xml
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<cfg_ldc_xml xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema">
<!--this is a comment-->
<dcc_name>cfg_ldc</dcc_name>
<dcc_header>
<camera_module_id> 233 </camera_module_id>
<dcc_descriptor_id> 5 </dcc_descriptor_id>
<algorithm_vendor_id> 1 </algorithm_vendor_id>
<tunning_tool_version> 0 </tunning_tool_version>
</dcc_header>
<!--=======================================================================-->
<typedef>
<cfg_ldc_vars type="struct">
<ldc_en type="uint16"> </ldc_en>
<ldc_ldmapen type="uint16"> </ldc_ldmapen>
<ldc_datamode type="uint16"> </ldc_datamode>
<ldc_opdatamode type="uint16"> </ldc_opdatamode>
<ldc_ip_dfmt type="uint16"> </ldc_ip_dfmt>
<ldc_pwarpen type="uint16"> </ldc_pwarpen>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   

4578.OVX3C-MAX9295_MARS_mesh_lut.txt

  • Hi Zhili,

    It is very likely caused by a bug we fixed in the upcoming V3.0.
    The LUT file should have 69 rows rather than 68.
    While generating the LUT file, tuning tool does not write out the last row properly to the text file.
    We typically use larger mesh frame size than output image size and therefore we did not see that issue while releasing V2.5.

    To get around, you may do it again with image height 1096 to get a new LUT with 69 rows to replace your current LUT file.

    If you share your LDC tuning project, I can try it out on my side with the bug fixed version to confirm.

  • Hi Gang,

    After changed the image height to 1096, the messy green in the last lines of LDC output image is gone.

    The lens distortion spec file, matlalb code and YUV image is attached here:

    LDC_X3C_HJ6154_120.zip

    I cannot save YUV image with LDC successfull, the images saved still not processed by lens distortion correction, what's reason of this?

    By the way, when will DCC V3.0 be released?

    Thanks.

  • Hi Zhili,

    Thanks for the update!
    That confirms the cause is as we suspected.

    >> I cannot save YUV image with LDC

    I suppose you mean save LDC output from H/W using the tuning tool.
    I don't think that is supported.
    The YUV image transferred from H/W to tuning tool is the VISS output (before LDC).

  • V3.0 will come out by the end of next week if everything goes smoothly.

  • Hi Gang,

    Has DCC V3.0 been released?

    Thanks.

  • Yes, it is released a week ago.

    If your access to mysecuresw is still valid, you shall be able to download.

  • Can you provide me a dowmload link? Or do I need to contact local TI FAE to get?

  • If have access previously and it is still valid (not expired), you shall be able to download.

    There is a "secure access" section in your "myTI dashboard" under you account profile.