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.

TDA4VH-Q1: LDC Affine Rotate

Part Number: TDA4VH-Q1

 
Hi Team,

I was trying to rotate the input image by (+90) degrees using LDC but when I use the affine matrix [0, -4096 0;4096 0 0; 0 0 0] It is not giving correct output. am I missing something here?

I want to view 90 degree rotated complete image as output.
input image = 1920x1280

output: 

A_mat =
| cos(90°)*(2^12) -sin(90°)*(2^12) 0 |
| sin(90°)*(2^12) cos(90°)*(2^12) 0 |
| 0 0 1 |

after calculation A_mat =

[0 -4096 0;
4096 0 0;
0 0 1]

  • Hi,

    I have assigned this thread to an expert. Meanwhile, could you let me know which SDK version are currently working on?

    Regards,

    Nikhil

  • Hi Vaishnavi,

    You probably have the correct 2x2 part (A, B, D, E), but C and F depends on the input and output coordinates.

    A B C
    D E F
    0 0 1

    For your 1920x1280 case, LDC input coordinate is X in [0, 1919] and Y in [0, 1279].
    LDC output coordinate is X in [0, 1279], Y in [0, 1919].
    You will need to set C and F properly, e.g., 

    0 -4096 1279

    4096 0 0