implemented reflection matrix

This commit is contained in:
Damian Kowalski 2024-04-07 13:45:07 +02:00
parent 09900c5117
commit 3fc16dbe8e

View File

@ -85,7 +85,9 @@ const math::matrix<float> Convolution::reflection(const math::matrix<float> A)
int size = A.rowno(); int size = A.rowno();
math::matrix<float> C(size, size); math::matrix<float> C(size, size);
qDebug() << Q_FUNC_INFO << "Not implemented yet!"; for (int i=0; i < size; i++)
for (int j=0; j < size; j++)
C[i][j] = A[size-i-1][size-j-1];
return C; return C;
} }