Q(12)
Display the RG face of the color cube.
Ans.
RG(:,:,1)=[ones(256,1)*[0:1:255]/255]';
RG(:,:,2)=[ones(256,1)*[0:1:255]/255];
RG(:,:,3)=zeros(256);
imshow (RG)
Q(13)
Display the GB face of the color cube.
Ans.
GB(:,:,1)=zeros(256);
GB(:,:,2)=[ones(256,1)*[0:1:255]/255]';
GB(:,:,3)=[ones(256,1)*[255:-1:0]/255];
imshow(GB)
Saturday, May 31, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment