Monday, June 2, 2008

Q#13, 14



Display the GB face of the colour cube
GB(:,:,1) = Zeros(256);
GB(:,:,2)=[ones(256,1)*[256:-1:0]/255];
GB(:,;,3)=[ones(256,1)*[255:-1:0]/255]';
imshow(GB)



Q#14 Show the CY face of colour cube
Octave Commands:
CY(:,:,1)=[ones(256,1)*[255:-1:0]/255]';
CY(:,:,2)=ones(256);
CY(:,:,3)=[ones(256,1)*[0:1:255]/255];
imshow(CY);

No comments: