DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

TestObjectAddNoise

TestObject generation function

SYNOPSIS

#include "dip_generation.h"

dip_Error dip_TestObjectAddNoise ( object, noisy, background, backvalue, gaussianNoise, poissonNoise, snr, conversion, variance, random )

DATA TYPES

binary, integer, float

FUNCTION

This function adds a mixture of Gaussian and Poisson noise to a testobject at a specified signal-to-noise ratio. The SNR is defined as the average object energy divided by the average noise power.

ARGUMENTS

Data typeNameDescription
dip_ImageobjectInput Object Image
dip_ImagenoisyOutput Image
dip_ImagebackgroundBackground Image
dip_floatbackvalueConstant Background Value
dip_floatgaussianNoiseRelative Amount of Gaussian Noise
dip_floatpoissonNoiseRelative Amount of Poisson Noise
dip_floatsnrSignal to Noise Ratio
dip_float *conversion (0)Pointer to the Poisson Conversion Factor
dip_float *variance (0)Pointer to the Gaussian Variance
dip_Random *randomPointer to a random value structure

SEE ALSO

TestObjectCreate, TestObjectModulate, TestObjectBlur