gaussian smoothing More...
#include <vil/vil_image_resource.h>
Go to the source code of this file.
Functions | |
vil_image_resource_sptr | vepl_gaussian_convolution (vil_image_resource_sptr, double sigma=1, double cutoff=0.01) |
gaussian smoothing with given sigma (default 1). |
gaussian smoothing
Gaussian filtering is an operation that replaces a pixel with the average value of its surrounding pixels, in a certain neighbourhood, according to a Gaussian distribution (with given sigma= std deviation). (The window is cut when `cutoff' (default: 0.01) of the probability mass lies out of the window.)
Note that DataIn values must allow addition and multiplication with floats; and that the result be expressible as DataOut, possibly after rounding. Probably only float and double make sense as DataOut (?)
As this is a separable filter, it is implemented as a row-based 1-D filter followed by a column-based 1-D step.
Modifications Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr
Definition in file vepl_gaussian_convolution.h.
vil_image_resource_sptr vepl_gaussian_convolution | ( | vil_image_resource_sptr | , |
double | sigma = 1 , |
||
double | cutoff = 0.01 |
||
) |
gaussian smoothing with given sigma (default 1).
Definition at line 12 of file vepl_gaussian_convolution.cxx.