A Survey of Gaussian Convolution Algorithms
Functions
gaussian_short_conv.h File Reference

Gaussian convolution for short signals (N <= 4) More...

Detailed Description

Gaussian convolution for short signals (N <= 4)

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.cmla..nosp@m.ens-.nosp@m.cacha.nosp@m.n.fr

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...
 

Function Documentation

void gaussian_short_conv ( num dest,
const num src,
long  N,
long  stride,
num  sigma 
)

Gaussian convolution on a short signal (N <= 4)

Parameters
destoutput convolved data
srcdata to be convolved, modified in-place if src=dest
Nnumber of samples (0 < N <= 4)
stridestride between successive samples
sigmaGaussian 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.