This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: o Then use the formula on page 34 of “CpE462-6.ppt” to create a new matrix Y which is the luminance component from “r”, “g” and “b” matrices. Print out your Matlab procedures (using “diary” function). > Y=r*0.299+g*0.587+b*0.114; OR > for i=1:x, % x should be the number of rows > for j=1:y, % y should be the number of columns > Y(i,j)=r(i,j)*0.299+g(i,j)*0.587+b(i,j)*0.114; > end, > end, o Use “dispimg” function to display Y, and print out this gray level image. > dispimg(Y); OR > imshow(Y/256,256);...
View Full Document
This homework help was uploaded on 04/05/2008 for the course EE/CPE 462 taught by Professor Prof.hongman during the Spring '07 term at Stevens.
- Spring '07