getgauss implemented

This commit is contained in:
Damian Kowalski 2024-04-07 14:15:24 +02:00
parent 04c2054e8e
commit 7ae6e9433c

View File

@ -32,8 +32,7 @@ math::matrix<float> BlurGaussian::getMask(int size, Mode)
float BlurGaussian::getGauss(int x, int y, float sigma) float BlurGaussian::getGauss(int x, int y, float sigma)
{ {
qDebug() << Q_FUNC_INFO << "Not implemented yet!"; float expValue = exp(-(pow(x, 2) + pow(y, 2)) / (2 * pow(sigma, 2)));
return (1 / (2 * M_PI * pow(sigma, 2))) * expValue;
return 0;
} }