getgauss implemented
This commit is contained in:
parent
04c2054e8e
commit
7ae6e9433c
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user