function R = imnoise2(type, M, N, a, b)
% IMNOISE2 Generates an array of random number with specified PDF.
% R = IMNOISE2(TYPE, M, N, A, B)generates an array, R, of size M
% -by-N, whose elements are random numbers of the specified TYPE with
% parameters A and B. If only TYPE is included in the input argument
% list, a single random number of the specified TYPE and defalut
% parameters shown below is generated. If only TYPE, M, and N are
% provided, the default parameters shown below are used. If M = N = 1,
% IMNOISE2 generates a single random number of the specified TYPE and
% parameters A and B.
%
% Valid values for TYPE and parameters A and B are:
% 'uniform' Uniform random numbers in the interval (A, B). The defalut
% value are (0, 1).
% 'gaussian' Gaussian random numbers with mean A and standard deviation
% B. The default values are A = 0, B = 1.
% 'salt & pepper' Sa
【MATLAB】图像处理相关函数imnoise2函数
最新推荐文章于 2023-01-12 20:22:34 发布
本文深入探讨了MATLAB中的imnoise2函数,该函数用于向图像添加不同类型的噪声。我们讨论了其参数用法,包括各种噪声模型如高斯噪声、椒盐噪声等,并通过实例展示了如何使用imnoise2来模拟和分析图像噪声的影响。
摘要由CSDN通过智能技术生成