Generate an image disturbed by Poisson noise
#include "dip_noise.h"
dip_Error dip_PoissonNoise ( in, out, conversion, random )
integer, float
Generate a Poisson noise disturbed image. The intensities of the input image divided by the conversion variable are used as mean value for the Poisson distribution. The conversion factor can be used to relate the pixel values with the number of counts. For example, the simulate a photon limited image acquired by a CCD camera, the conversion factor specifies the relation between the number of photons recorded and the pixel value it is represented by.
Data type | Name | Description |
dip_Image | in | Input |
dip_Image | out | Output |
dip_float | conversion | Conversion factor (photon/ADU) |
dip_Random * | random | random |
Get a Poisson disturbed image as follows:
dip_Image in, out; dip_float conversion; dip_Random random; conversion = 2.0; DIPXX( dip_PoissonNoise(in, out, conversion, &random ));
RandomVariable, RandomSeed, UniformNoise, GaussianNoise, BinaryNoise
DIPlib on-line documentation | Function reference | Global function index