A Survey of Gaussian Convolution Algorithms
Functions
gaussian_conv_fir.c File Reference

Gaussian convolution using FIR filters. More...

Detailed Description

Gaussian convolution using FIR filters.

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

Copyright (c) 2012-2013, 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 with this program. If not, see http://www.gnu.org/licenses/ and http://www.opensource.org/licenses/bsd-license.html.

Definition in file gaussian_conv_fir.c.

#include "gaussian_conv_fir.h"
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "filter_util.h"
#include "inverfc_acklam.h"

Go to the source code of this file.

Functions

static nummake_g_trunc (num sigma, long r)
 Construct truncated Gaussian filter for FIR convolution. More...
 
static void conv_sym (num *dest, const num *src, long N, long stride, const num *h, long r)
 Convolution with a symmetric filter. More...
 
int fir_precomp (fir_coeffs *c, double sigma, num tol)
 Precompute filter coefficients for FIR filtering. More...
 
void fir_gaussian_conv (fir_coeffs c, num *dest, const num *src, long N, long stride)
 FIR Gaussian convolution. More...
 
void fir_gaussian_conv_image (fir_coeffs c, num *dest, num *buffer, const num *src, int width, int height, int num_channels)
 FIR filtering approximation of 2D Gaussian convolution. More...
 
void fir_free (fir_coeffs *c)
 Release memory associated with fir_coeffs struct. More...