% -*- texinfo -*- % @deftypefn {Function File} {@var{B} =} imnoise (@var{A}, @var{type}) % Adds noise to image in @var{A}. % % @table @code % @item imnoise (A, 'gaussian' [, mean [, var]]) % additive gaussian noise: @var{B} = @var{A} + noise % defaults to mean=0, var=0.01 % @item imnoise (A, 'salt & pepper' [, density]) % lost pixels: A = 0 or 1 for density*100% of the pixels % defaults to density=0.05, or 5% % @item imnoise (A, 'speckle' [, var]) % multiplicative gaussian noise: @var{B} = @var{A} + @var{A}*noise % defaults to var=0.04 % @end table % @end deftypefn