mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
[454/906] blur: fix gaussian kernel computation
This commit is contained in:
parent
17a33cd19a
commit
00030c2bdd
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ fill_gaussian_kernel (float *kernel, int size, float sigma)
|
||||||
l = (size - 1) / 2;
|
l = (size - 1) / 2;
|
||||||
|
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
kernel[i] = expf (-pow ((i - l), 2.0) / (2 * sigma));
|
kernel[i] = expf (-0.5 * pow ((i - l) / sigma, 2.0));
|
||||||
sum += kernel[i];
|
sum += kernel[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue