blur namespace
#include <include/spice/blur.hpp>
Contents
- Reference
This namespace exports a collection of blurring and averaging functions.
Functions
-
template<typename T>auto fast_gaussian(image<T> const& source, float sigma, size_t passes = 5) -> image<T>
Function documentation
template<typename T>
image<T> spice:: blur:: fast_gaussian(image<T> const& source,
float sigma,
size_t passes = 5)
| Parameters | |
|---|---|
| source | The image to blur |
| sigma | The standard deviation ("size") of the blur |
| passes | How many box-blur passes should be applied. A higher number will yield a closer approximation at the cost of longer running time. |
| Returns | A blurred copy of the input image |
Applies an approximation of a gaussian blur to the source image. This function has an asymptotic time complexity of O(w * h * c) where w, h, c refer to the width, height and channel count of the source image.