skip to main | skip to sidebar

5300 Blog

Monday, May 26, 2008

Assignment #4, Q13

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.
Posted by pdiddy at 10:05 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (55)
    • ►  07/13 - 07/20 (1)
    • ►  07/06 - 07/13 (1)
    • ►  06/29 - 07/06 (3)
    • ►  06/15 - 06/22 (11)
    • ►  06/08 - 06/15 (4)
    • ►  06/01 - 06/08 (3)
    • ▼  05/25 - 06/01 (20)
      • Assignment #4, Q22
      • Assignment #4, Q 19
      • Assignment #4, Q 20
      • Assignment #4, Q 17
      • Assignment #4, Q 16
      • Assignment #4, Q15
      • Assignment #4, Q 14
      • Assignment #4, Q13
      • Assignment #4, Q 12
      • Assignment #4, Question 11
      • Assignment #4, Question 10
      • Assignment 4, Question 9
      • Assignment #4, Question 8
      • Assignment #4, Question 7
      • Assignment #4, Question 6
      • Assignment #4, Question 5
      • Assignment #4, Question 4
      • Assignment #4, Question 3
      • Assignment #4, Question 2
      • Assignment #4, Question 1
    • ►  05/18 - 05/25 (3)
    • ►  05/11 - 05/18 (8)
    • ►  05/04 - 05/11 (1)

About Me

pdiddy
View my complete profile