getmask implemented in gauss

This commit is contained in:
Damian Kowalski 2024-04-07 14:17:12 +02:00
parent 7ae6e9433c
commit f9af87a5d5

View File

@ -25,7 +25,9 @@ math::matrix<float> BlurGaussian::getMask(int size, Mode)
{
math::matrix<float> mask(size, size);
qDebug() << Q_FUNC_INFO << "Not implemented yet!";
for (int i = 0; i < size; i++)
for (int j = 0; j < size; j++)
mask(i, j) = getGauss(i - radius, j - radius, sigma);
return mask;
}