From: Namo on 9 Apr 2010 06:15 Hello, I have Matlab 2009b. colormap function is not working. It open empty figure page. Before if I did colormap([1 0 0]), I get red color figure but now I only get the empty gray figure page.
From: ImageAnalyst on 9 Apr 2010 06:49 On Apr 9, 6:15 am, "Namo " <namo1...(a)hotmail.com> wrote: > Hello, > I have Matlab 2009b. > colormap function is not working. It open empty figure page. > > Before if I did colormap([1 0 0]), I get red color figure but now I only get the empty gray figure page. -------------------------------------------------------------------------------- Um, did you display an image? Sorry, but until the Mind reading Toolbox is completed, you'll have to post your code.
From: Walter Roberson on 9 Apr 2010 10:56 Namo wrote: > I have Matlab 2009b. colormap function is not working. It open empty > figure page. That's what it is documented to do. There is one colormap per figure, so if there is no current figure, the colormap function must create a new figure and manipulate or retrieve its colormap . > Before if I did colormap([1 0 0]), I get red color figure but now I only > get the empty gray figure page. Unless there was a bug, colormap() never affected the background color of figures (or of axes.) If you want to change the background color of the figure, set() the Color property of the figure. colormap applies only to the coloring of surfaces drawn in axes in certain kinds of plots.
From: Namo on 15 Apr 2010 11:44 what is the best to show color addition I know that colormap([1 1 0]) will show me the addition of red and green in figure page. I don't have a code I am just using colormap to see the result of adding colors. But now I remmeber that I have to do image(colormap([1 1 0]))
From: ImageAnalyst on 15 Apr 2010 14:17 On Apr 15, 11:44 am, "Namo " <namo1...(a)hotmail.com> wrote: > what is the best to show color addition > > I know that colormap([1 1 0]) will show me the addition of red and green in figure page. > > I don't have a code I am just using colormap to see the result of adding colors. > > But now I remmeber that I have to do image(colormap([1 1 0])) ------------------------------------------------------- No, that's nonsense. You need to understand that first you have an image, then the image may be pseudocolored according to some colormap that you assign. Your colormap will map an intensity gray level (of your image pixels) into a color (a triplet of red, green, and blue intensity values that you want that gray level to be.) You need to understand how this works, and right now you don't so some study is in order.
|
Pages: 1 Prev: Draw major and minor axes on ellipse Next: READING TEXT BOX VALUE.... |