Unformatted text preview: % D. Use the simpler grayscale formula where the pixel value is the average % of the three layers. Do *NOT* use the weighted average formula or any % builtin MATLAB functions such as rgb2gray() or gray(). Also, make sure % that D is a valid image matrix in that it has three dimensions and is of % type uint8(). % % Write your code here (it will be a few lines): D = D % e) Negative. Store the negative of the image matrix A in the variable E. % % Write your code here: E = %<fix this code>% E % f) imwrite. Write a new image that is similar to the image matrix A, % except that the image should be 50% less bright. The name of the new % image is stored in the variable filename2. % % Write your code here: %<fix this code>%...
View
Full Document
 Spring '08
 Stallworth
 Weighted mean, builtin MATLAB functions, weighted average formula, image matrix, valid image matrix, simpler grayscale formula

Click to edit the document details