GaussianRandomize
Description
Sets all image values to a random number drawn from a Gaussian distribution with mean and sigma parameters specified by the user. For complex images, the modulus of the value will be a random number drawn from the Gaussian distribution, while the argument will be a random number between 0 and 2 pi drawn form a uniform distributio.n
Full scope is iplt::alg::GaussianRandomize in C++, resp iplt.alg.GaussianRandomize in Python.
Examples
C++
#include <iplt/image.hh> #include <iplt/alg/gaussian_randomize.hh> using namespace iplt; int main() { ImageHandle img = CreateImage(Size(10,10)); img.ApplyIP( alg::GaussianRandomize(4.3,2.0); return 0; }
Python
from iplt import * img = CreateImage(Size(10,10)) img.ApplyIP(GaussianRandomize(2.4,2.0))
Back to Algorithm List
