在 MATLAB 中,如何将矩阵写入EPS格式的图像?
好像imwrite
不支持EPS。
Convert 在我使用的 Linux 服务器上不起作用:
$ convert exploss_stumps.jpg exploss_stumps.eps
convert: missing an image filename `exploss_stumps.eps' @ convert.c/ConvertImageCommand/2838
为什么?
我在终端模式下尝试了gnovice的想法:
figH = figure('visible','off') ;
imshow(img,'border','tight',... %# Display in a figure window without
'InitialMagnification',100); %# a border at full magnification
print(strcat(filepath,'/', dataset,'_feature_',num2str(j), '.eps'),'-depsc2');
close(figH) ;
但是我得到了:
???在 191 使用 ==> imshow 时出错
IMSHOW 需要 Java 才能运行。
==> study_weaker 在 122
处出错 imshow(img,'border','tight',... %# 在图形窗口中显示没有
191 错误(eid,'%s 需要 Java 才能运行。',upper(mfilename) );
我该如何解决?