PoissonRandomize

Description

Sets all image values to a random number drawn from a Poisson distribution with a mean parameter specified by the user. For complex images, the modulus of the value will be a random number drawn from the GPoisson 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::PoissonRandomize in C++, resp iplt.alg.PoissonRandomize in Python.

Examples

C++

#include <iplt/image.hh>
#include <iplt/alg/poisson_randomize.hh>

using namespace iplt;

int main() 
{
  ImageHandle img = CreateImage(Size(10,10));
  img.ApplyIP(alg::PoissonRandomize(2.2);

  return 0;
}

Python

from iplt import *

img = CreateImage(Size(10,10))
img.ApplyIP(PoissonRandomize(2.4))

Back to Algorithm List