Tool/software:
How can I flip images using LDC?
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.
VPAC LDC on TDA4x/AM6xA device can be programed to flip input images.
It can be done by programming the affine transform matrix elements (A, B, C, D, E, F) in LDC without using the the distortion correction mesh LUT.
Let's assume the input image has iW x iH pixels.
1. Left-right flipping
A = -4096 B = 0 C = (iW - 1) * 8 D = 0 E = 4096 F = 0 G = H = 0
2. Top-bottom flipping
A = 4096 B = 0 C = 0 D = 0 E = -4096 F = (iH-1) * 8 G = H = 0
3. 90-degree clock-wise rotation
A = 0 B = 4096 C = 0 D = -4096 E = 0 F = (iH - 1) * 8 G = H = 0
4. 180-degree clock-wise rotation
A = -4096 B = 0 C = (iW - 1) * 8 D = 0 E = -4096 F = (iH - 1) * 8 G = H = 0
5. 270-degree clock-wise rotation
A = 0 B = -4096 C = (iW - 1) * 8 D = 4096 E = 0 F = 0 G = H = 0
References
1. Some e2e threads for image flipping in LDC
2. FAQ page for programming LDC mesh LUT
3. FAQ page for image flipping in DSS