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: LDC without distortion

Part Number: TDA4VM


Tool/software:

Hi, 

I'm tying to apply a rotation of an image without distortion, as explained in this thread:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1324990/tda4vh-q1-ldc-affine-rotate?tisearch=e2e-sitesearch&keymatch=LDC%20matrix%20rotation

The explanation is clear to me. However, the DCC Tool is asking me for a LUT to execute the plugin. Is there any way to avoid to add the LUT? As I could not achieve that, I decided to include a LUT table without distortion generated usign the octave code below. The mesh grid has the same dimension as the image (1936x1552).

function no_distortion()
  m = 4;  # Table subsampling factor

  # LUT table dimension 
  width = 1936;
  height = 1552;
  [u,v] = meshgrid(0:width,0:height);

  u_dist_m = u(1:m^2:end, 1:m^2:end)';
  v_dist_m = v(1:m^2:end, 1:m^2:end)';
  dlmwrite('no_distortion.txt', [u_dist_m(:), v_dist_m(:)], 'delimiter', ' ');
  endfunction

When trying to generate the output (even without rotation), the output image seems to be laterally shrinked in the right and down side of the image. I would expect the image not to be shrinked. Could you provide some hint about why that happens? I'm usind DCC Tool version 3.1. Thanks

This is the original image:

And the image after executing the plugin:




  • To clarify things, I meant without distortion correction, only rotation. Thanks.

  • Hi Carlos,

    Which verions of tuning tool do you have?
    The latest version is 3.1.

    Is there any way to avoid to add the LUT?

    No, the plugin GUI does not have that option.
    But, you may set all your mesh LUT entries to 0s between your line 10 and line 11.

    u_dist_m(:)=0;

    v_dist_m(:)=0;

  • I cannot recall if I have tried this previously.
    There is one parameter in output xml file for turning off the mesh LUT.
    You may edit that line manually.
    If it works on H/W, then you don't need to use a large LUT with all 0s.
    A simple dummy LUT in the xml file should be fine.


    1 // LDC_CTRL LDC_EN LDC Enable, 0: Disable, 1: Enable
    1 // LDC_CTRL LDMAPEN LD Mapping enable, 0: disable, 1: enable
    2 // LDC_CTRL DATAMODE Input data mode, 0: UYVY, 1: Y only, 2: YUV420SP, 3: UV only, 4: YUV422SP, 5: Y1+Y2, 6: Y1 + Y2Y3
    0 // LDC_CTRL OP_DATAMODE Output data mode, 0: keep UYVY; 1: convert to 420