Tuesday, June 10, 2008

Assignment 9 Question 3

Take the images from Assignment 6 number #3 part
(c) and turn them into a greyscale image (with values between 0 and 255). Do this
by computing the intensity of each pixel in the image.


function [ gim ] = togray( cim )

gim = (cim(:,:,1)+cim(:,:,2)+cim(:,:,3))/3;

>> imshow(togray(bluelines/255));


>> imshow(togray(jade/255));

No comments: