A Survey of Gaussian Convolution Algorithms
Macros | Functions
gaussian_conv_deriche.c File Reference

Deriche's approximation of Gaussian convolution. More...

Detailed Description

Deriche's approximation of Gaussian convolution.

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

#include "gaussian_conv_deriche.h"
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "filter_util.h"
#include "complex_arith.h"
#include "gaussian_short_conv.h"

Go to the source code of this file.

Macros

#define M_SQRT2PI   2.50662827463100050241576528481104525
 The constant sqrt(2 pi)
 

Functions

static void make_filter (num *result_b, num *result_a, const complex *alpha, const complex *beta, int K, double sigma)
 Make Deriche filter from alpha and beta coefficients. More...
 
void deriche_precomp (deriche_coeffs *c, double sigma, int K, num tol)
 Precompute coefficients for Deriche's Gaussian approximation. More...
 
void deriche_gaussian_conv (deriche_coeffs c, num *dest, num *buffer, const num *src, long N, long stride)
 Deriche Gaussian convolution. More...
 
void deriche_gaussian_conv_image (deriche_coeffs c, num *dest, num *buffer, const num *src, int width, int height, int num_channels)
 Deriche Gaussian 2D convolution. More...