SLIP
1.4
|
Provides some algorithms to add noise to ranges. More...
#include <ctime>
#include <boost/random.hpp>
Go to the source code of this file.
Namespaces | |
slip | |
This namespace corresponds to the kernel of the Simple Library on Image Processing (SLIP). That is to say that it contains the data structures and the algorithms needed by these data strucutres. | |
Functions | |
Gaussian noise algorithms | |
template<typename InputIterator , typename OutputIterator , typename Real > | |
void | slip::add_gaussian_noise (InputIterator first, InputIterator last, OutputIterator result, const Real mean=Real(0.0), const Real var=Real(0.01)) |
Add a gaussian noise to a container. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename MaskIterator > | |
void | slip::add_gaussian_noise_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, const Real mean=Real(0.0), const Real var=Real(0.01), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1)) |
Add a gaussian noise to a container according to a mask sequence. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename Predicate > | |
void | slip::add_gaussian_noise_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const Real mean=Real(0.0), const Real var=Real(0.01)) |
Add a gaussian noise to a container according to a predicate. More... | |
Speckle noise algorithms | |
template<typename InputIterator , typename OutputIterator , typename Real > | |
void | slip::add_speckle_noise (InputIterator first, InputIterator last, OutputIterator result, const Real var=0.04) |
Add a speckle noise to a container. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename MaskIterator > | |
void | slip::add_speckle_noise_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, const Real var=0.04, typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1)) |
Add a speckle noise to a container according to a mask sequence. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename Predicate > | |
void | slip::add_speckle_noise_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const Real var=0.04) |
Add a speckle noise to a container according to a predicate. More... | |
Uniform noise algorithms | |
template<typename InputIterator , typename OutputIterator , typename Real > | |
void | slip::add_uniform_noise (InputIterator first, InputIterator last, OutputIterator result, const Real min=Real(0.0), const Real max=Real(1.0)) |
Add a uniform noise to a container. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename MaskIterator > | |
void | slip::add_uniform_noise_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, const Real min=Real(0.0), const Real max=Real(1.0), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1)) |
Add a uniform noise to a container according to mask sequence. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename Predicate > | |
void | slip::add_uniform_noise_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const Real min=Real(0.0), const Real max=Real(1.0)) |
Add a uniform noise to a container according to a predicate. More... | |
Salt and pepper noise algorithms | |
template<typename InputIterator , typename OutputIterator , typename Real > | |
void | slip::add_salt_and_pepper_noise (InputIterator first, InputIterator last, OutputIterator result, const Real density=Real(0.05), const typename std::iterator_traits< OutputIterator >::value_type salt_value=typename std::iterator_traits< OutputIterator >::value_type(1.0), const typename std::iterator_traits< OutputIterator >::value_type pepper_value=typename std::iterator_traits< OutputIterator >::value_type(0.0)) |
Add a salt and pepper noise to a container. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename MaskIterator > | |
void | slip::add_salt_and_pepper_noise_mask (InputIterator first, InputIterator last, MaskIterator mask_first, OutputIterator result, const Real density=Real(0.05), const Real salt_value=Real(1.0), const Real pepper_value=Real(0.0), typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1)) |
Add a salt and pepper noise to a container according to a mask sequence. More... | |
template<typename InputIterator , typename OutputIterator , typename Real , typename Predicate > | |
void | slip::add_salt_and_pepper_noise_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const Real density=Real(0.05), const Real salt_value=Real(1.0), const Real pepper_value=Real(0.0)) |
Add a salt and pepper noise to a container according to a predicate. More... | |
Provides some algorithms to add noise to ranges.
Definition in file noise.hpp.