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.

PROCESSOR-SDK-DRA8X-TDA4X: LDC Tuning

Part Number: PROCESSOR-SDK-DRA8X-TDA4X


Hi,

I would like to get some support on LDC tuning using DCC.

I have given a distorted MCC chart as input image and generated mesh lut using the script below.

W = 1600; hc = W/2;
H = 1300; vc = H/2;
f = W/4/sin(pi/4); s = 2; m = 4;
[h_p, v_p] = meshgrid(0:W, 0:H);
r_u = sqrt((h_p-hc).^2 + (v_p-vc).^2);
theta = atan(r_u * s / f);
f_c = s * cos(theta) ./ cos(theta/2);
h_d = hc + (h_p-hc) .* f_c;
v_d = vc + (v_p-vc) .* f_c;
h_delta = round((h_d - h_p) * 8);
v_delta = round((v_d - v_p) * 8);
mh = h_delta(1:2^m:end, 1:2^m:end)';
mv = v_delta(1:2^m:end, 1:2^m:end)';
dlmwrite('mesh.txt', [mh(:), mv(:)], 'delimiter', ' ');

I have given the generated LUT also as input and selected the tuning parameters as shown below

However, i am getting an error "Error: File mesh_lut.txt contains 16564 entries, but the parameters suggest it should contain 16766 entries"

Appreciate your guidance here.