next up previous contents index
Next: fcontrast Up: Reference Previous: cmnoise   Contents   Index

cnoise

$ \bigcirc$Name


cnoise Put noise on a Cimage




$ \bigcirc$Command Synopsis


cnoise [-g std] [-i p] [-n] in out



-g std : additive Gaussian noise with standard deviation std

-i p : impulse noise (range 0..255), applied to p percent of the pixels

-n : in order NOT to reinitialize the random seed

in : input Cimage

out : output Cimage




$ \bigcirc$Function Summary


void cnoise (u , v , std , p , n_flag )

Cimage u , v ;

float *std , *p ;

char *n_flag ;




$ \bigcirc$Description


This module corrupts a Cimage with additive Gaussian noise or with impulse noise. It basically works like the fnoise module, so please refer to it for a more detailed description. For Gaussian noise, cnoise rounds and thresholds the result in {0,...255} in order to produce a Cimage. For impulse noise, the random variable i is taken uniformly distributed in {0,...255}.




$ \bigcirc$See Also


cmnoise.


$ \bigcirc$Version 1.0


Last Modification date : Thu Nov 29 20:23:56 2001


$ \bigcirc$Author


Lionel Moisan






next up previous contents index
Next: fcontrast Up: Reference Previous: cmnoise   Contents   Index
mw 2004-05-05