Home > freetb4matlab > image > imnoise.m

imnoise

PURPOSE ^

% Adds noise to image in @var{A}.

SYNOPSIS ^

function A = imnoise(A, stype, a, b)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003