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 % built-in 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
- Weighted mean, built-in MATLAB functions, weighted average formula, image matrix, valid image matrix, simpler grayscale formula