diff --git a/src/core/transformations/blur_gaussian.cpp b/src/core/transformations/blur_gaussian.cpp index 3eba6e4..15d0423 100644 --- a/src/core/transformations/blur_gaussian.cpp +++ b/src/core/transformations/blur_gaussian.cpp @@ -32,8 +32,7 @@ math::matrix BlurGaussian::getMask(int size, Mode) float BlurGaussian::getGauss(int x, int y, float sigma) { - qDebug() << Q_FUNC_INFO << "Not implemented yet!"; - - return 0; + float expValue = exp(-(pow(x, 2) + pow(y, 2)) / (2 * pow(sigma, 2))); + return (1 / (2 * M_PI * pow(sigma, 2))) * expValue; }