(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));
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2AQII46JihcTHEVa5itC3_3nzCx62g2IP-oYsno9GhtiSwfwyHdTzi3zQAwPAzdieUGU3Ir1xJihtRWbSL1ot0ROdQCDZUWHJRgSjImmw9WoSDJTH94BXGv4QTVvfVCY3orO4pcJahRU/s400/bluegrayfull.jpg)
>> imshow(togray(jade/255));
No comments:
Post a Comment