Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. color_vector =[0.....1] % o for blue, .5 for green and 1 for red
  2. R=255,0,0
  3. G=0,255,0
  4. B=0,0,255
  5.  
  6. I = rand(100, 100); % Input data
  7. cmap = [1 0 0 45; 0 1 0 10; 0 1 0 45; 0 0 1 0]; % Colormap defining the transformation
  8. RGB = real2rgb(I, cmap); % Do the conversion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement