Files
opencv-MIRROR/modules/dnn
Shiven Solanki 3e3f338dde Merge pull request #31061 from sshivensolanki/dnn-trilu-tall-matrix
dnn: fix Trilu for inputs with more rows than columns

Problem
Trilu only loops over the first min(h, w) rows, so when the input has more rows than columns, the remaining rows keep their input values instead of being masked.

Fix
Loop over all h rows in forward() and remove the unused m. The existing cmin < w && num_zeros > 0 check already keeps the memset inside each row, so no other change is needed.
2026-11-24 18:50:41 +05:30
..