avfilter/avf_showcwt: make kernels symmetrical
This commit is contained in:
parent
6f6907fd20
commit
44813d66e2
@ -655,7 +655,7 @@ static int compute_kernel(AVFilterContext *ctx)
|
||||
|
||||
memset(tkernel, 0, size * sizeof(*tkernel));
|
||||
for (int n = 0; n < size; n++) {
|
||||
float ff, f = n-frequency;
|
||||
float ff, f = n+0.5f-frequency;
|
||||
|
||||
f = hsize - fabsf(f - hsize);
|
||||
ff = expf(-f*f*deviation);
|
||||
|
Loading…
x
Reference in New Issue
Block a user