Display error

188 views
Skip to first unread message

Arun Mallya

unread,
Sep 12, 2012, 2:11:04 AM9/12/12
to cs498-...@googlegroups.com
I computed the FFT of an image and wanted to display it. I however obtained the following error message:

"
>> figure(1), imagesc(log(abs(fftshift(im1_fft)))), axis image, colormap jet
Error using image
Error using image
TrueColor CData contains element out of range 0.0 <= value <=1.0

Error in imagesc (line 19)
    hh = image(varargin{1},'CDataMapping','scaled');

"

How can I fix this? 

Thanks!

Nan Chen

unread,
Sep 12, 2012, 2:18:19 AM9/12/12
to cs498-...@googlegroups.com
image is black&white or color? if the later one, it may cause that error I think.

在 2012年9月12日星期三UTC-5上午1时11分04秒,Arun Mallya写道:

Arun Mallya

unread,
Sep 12, 2012, 2:20:59 AM9/12/12
to cs498-...@googlegroups.com
Yeah it's color. 

Hoiem, Derek W

unread,
Sep 12, 2012, 8:44:49 AM9/12/12
to cs498-...@googlegroups.com

Right, you can display only scaled images that have one channel (NxMx1, not NxMx3)

 

Derek

--
 
 

Reply all
Reply to author
Forward
0 new messages