Generates an image disturbed by binary noise
#include "dip_noise.h"
dip_Error dip_BinaryNoise ( in, out, p10, p01, random )
binary
Generate an image disturbed by binary noise.
Data type | Name | Description |
dip_Image | in | Input |
dip_Image | out | Output |
dip_float | p10 | Probability of a one to zero transition |
dip_float | p01 | Probability of a one to zero transition |
dip_Random * | random | Pointer to a random value structure |
Get a binary noise disturbed image as follows:
dip_Image in, out; dip_float p10, p01; dip_Random random; p10 = 0.1; p01 = 0.2; DIPXX( dip_BinaryNoise(in, out, p10, p01, &random ));
RandomVariable, RandomSeed, UniformNoise, GaussianNoise, PoissonNoise
DIPlib on-line documentation | Function reference | Global function index