Numel: (-5,5) Y1 Linspace (-5,5,7) Y1 - 5.0000 - 3.3333 - 1.6667 0 1.6667 3.3333 5.0000
Numel: (-5,5) Y1 Linspace (-5,5,7) Y1 - 5.0000 - 3.3333 - 1.6667 0 1.6667 3.3333 5.0000
y1 = linspace(-5,5,7)
y1 =
I = mat2gray(A, [amin amax]) converts the matrix A to the intensity image I. The returned matrix
I contains values in the range 0.0 (black) to 1.0 (full intensity or white). amin and amax are the
values in A that correspond to 0.0 and 1.0 in I. Values less than amin become 0.0, and values
greater than amax become 1.0.
I = mat2gray(A) sets the values of amin and amax to the minimum and maximum values in A.
gpuarrayI = mat2gray(gpuarrayA,___) performs the operation on a GPU. This syntax requires the
Parallel Computing Toolbox™.
The linear normalization of a grayscale digital image is performed according to the formula
For example, if the intensity range of the image is 50 to 180 and the desired range is 0 to 255
the process entails subtracting 50 from each of pixel intensity, making the range 0 to 130. Then
each pixel intensity is multiplied by 255/130, making the range 0 to 255.
Normalization might also be non linear, this happens when there isn't a linear relationship
Where defines the width of the input intensity range, and defines the intensity
around which the range is centered.[2]
Auto-normalization in image processing software typically normalizes to the full dynamic
range of the number system specified in the image file format.