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

Box filtering approximation of Gaussian convolution. More...

Detailed Description

Box filtering 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_box.c.

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

Go to the source code of this file.

Functions

static void box_filter (num *dest, long dest_stride, const num *src, long src_stride, long N, long r)
 Perform one pass of box filtering. More...
 
void box_gaussian_conv (num *dest_data, num *buffer_data, const num *src, long N, long stride, num sigma, int K)
 Box filtering approximation of Gaussian convolution. More...
 
void box_gaussian_conv_image (num *dest, num *buffer, const num *src, int width, int height, int num_channels, num sigma, int K)
 Box filtering approximation of 2D Gaussian convolution. More...