From: Ashish Uthama on 29 Apr 2010 07:18 On Wed, 28 Apr 2010 21:17:05 -0300, Daniel <dpas85(a)gmail.com> wrote: > Thanks, but image from colormap(gray) isn't 100% like original. > > I just want to open it like any image program does. Replacing with original colormap in Matt's snippet doesnt look any different. [img x]= imread('http://www-ece.rice.edu/~wakin/images/lena512.bmp','bmp'); colormap(x) imagesc(img,[0 255]) set([gcf,gca],'units','pix','pos',[0 0 512 512]) Can you explain what exactly doesnt look 100% like original (btw what is the 'original' ?)
From: Daniel on 29 Apr 2010 09:02 "Ashish Uthama" <first.last(a)mathworks.com> wrote in message <op.vbxa4amja5ziv5(a)uthamaa.dhcp.mathworks.com>... > On Wed, 28 Apr 2010 21:17:05 -0300, Daniel <dpas85(a)gmail.com> wrote: > > > Thanks, but image from colormap(gray) isn't 100% like original. > > > > I just want to open it like any image program does. > > Replacing with original colormap in Matt's snippet doesnt look any > different. > > [img x]= imread('http://www-ece.rice.edu/~wakin/images/lena512.bmp','bmp'); > colormap(x) > imagesc(img,[0 255]) > set([gcf,gca],'units','pix','pos',[0 0 512 512]) > > Can you explain what exactly doesnt look 100% like original (btw what is > the 'original' ?) Ok you people are right. With imagesc and colormap the image looks good. The problem happens when I save the figure as a bmp file (that's why I trough the problem was when opening the original image) figure capture -->http://img87.imageshack.us/i/sanstitreyf.png/ bmp --> http://img69.imageshack.us/i/62027049.png/
First
|
Prev
|
Pages: 1 2 Prev: Newbie Newey-West Next: parameter standard deviations & Out of Memory |