Octave command:
GB(:,:,1)=zeros(256);
GB(:,:,2)=[ones(256,1)*[0:1:255]/255];
GB(:,:,3)=[ones(256,1)*[255:1:0]/255]';
GB=rotdim(GB, 270);
imshow(GB)
The rotdim function allows you to rotate the image so that the orientation of the GB face of the colour cube is the same as it appears in the textbook.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment