A Survey of Gaussian Convolution Algorithms
|
Gaussian convolution for short signals (N <= 4) More...
Gaussian convolution for short signals (N <= 4)
Copyright (c) 2012, Pascal Getreuer All rights reserved.
This program is free software: you can redistribute it and/or modify it under, at your option, the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or the terms of the simplified BSD license.
You should have received a copy of these licenses along this program. If not, see http://www.gnu.org/licenses/ and http://www.opensource.org/licenses/bsd-license.html.
Definition in file gaussian_short_conv.h.
#include "num.h"
Go to the source code of this file.
Functions | |
void | gaussian_short_conv (num *dest, const num *src, long N, long stride, num sigma) |
Gaussian convolution on a short signal (N <= 4) More... | |
Gaussian convolution on a short signal (N <= 4)
dest | output convolved data |
src | data to be convolved, modified in-place if src=dest |
N | number of samples (0 < N <= 4) |
stride | stride between successive samples |
sigma | Gaussian standard deviation |
This routine performs DCT-based Gaussian convolution for very short signals, N
<= 4. Some of the Gaussian convolution implementations cannot handle such short signals, and this routine is used as a fallback.
Since the signals are of very short lengths, we compute the DCTs by direct formulas rather than with FFTW.
Definition at line 63 of file gaussian_short_conv.c.