【发布时间】:2014-09-08 21:51:47
【问题描述】:
我正在使用以下代码创建一个包含图像的 GUI:
try
Imagenamehere = imread('Imagenamehere.jpg');
axes(handles.Logo)
image(Imagenamehere)
set(gca,'xtick',[],'ytick',[])
catch
msgbox('Please download all contents from the zipped file into working directory.')
end
图像显示出来了,但由于某种原因完全是蓝色的,就像通过了蓝色滤镜一样。我认为上传图片并不明智,但它是一个简单的黑白徽标。
有人知道是什么原因造成的吗?
【问题讨论】:
标签: image matlab user-interface