"去噪 亮度变换: varargin 变长输入 (f, varargin) 用nargchk检测变量输入 error(nargchk(2, 4, nargin)) nargin和nargout 判断图像的数组是什么格式的 用mat2gray转化成range [0, 1] if strcmp(class(f), 'double') & max(f(:)) > 1 & ... ~strcmp(varargin{1}, 'log') f = mat2gray(f); 不然转成double的方便操作 f = im2double(f); 反转图像 g = imcomplement(f) 使用对数变换减小动"
"The field of digital image processing refers to processing digital images by means of a digital computer"
"As a consequence, f(x,y) must be nonzero and finite; that is 0< f(x,y) < infinite"
"Incoming energy is transformed into a voltage by the combination of input electrical power and sensor material that is responsive to the particular type or energy being detected."
"The quality of a digital image is determined to a large degree by the number of samples and discrete intensity levels used in sampling and quantization."
"The section of the real plane spanned by the coordinates of an image is called the spatial domain, with x and y being referred to as spatial variables or spatial coordinates."
"f(x, y) is a digital image if (x, y) are integers from z2 and f is a function that assigns an intensity value to each distinct pair of coordinates(x, y)."
"This digitization process requires that decisions be made regarding the values for M, N, and for the number, L, of discrete intensity levels."