我正在研究CBIR,在我的GUI中我有6个轴用于查询图像5的结果图像。为了在轴上显示图像,我的代码是
function displayResults(filename,hObject, eventdata, handles)
% Open 'filename' file... for reading...
fid = fopen(filename);
for N=6:1:10
imagename = fgetl(fid);
if ~ischar(imagename), break, end % Meaning: End of File...
x=imread(imagename);
axes(handles.(sprintf('axes%d', N)));
imshow(x)
xlabel(imagename);
end
fclose(fid);
并且调用函数位于按钮function Texture_Callback(hObject, eventdata, handles)
中。调用函数是displayResults('textureResults.txt',hObject, eventdata, handles);
这是我之前的输出窗口
![before pressing pushbutton](http://s1273.photobucket.com/user/Chethan_tv/media/fig5_zps64ca6452.jpg.html?sort=3&o=1)
按下按钮后
![final output](http://s1273.photobucket.com/user/Chethan_tv/media/fig5_zps98c96f8f.jpg.html?sort=3&o=0)
图像质量刚刚发生了什么?