【发布时间】:2011-01-29 12:50:36
【问题描述】:
在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 需要 Java 才能运行。
==> study_weaker 中的错误为 122
imshow(img,'border','tight',... %#在没有
的图形窗口中显示 191 错误(eid,'%s 需要 Java 才能运行。',upper(mfilename));
我该如何解决?
【问题讨论】:
-
尝试使用 SciPy 做同样的事情?先保存为文本,然后使用 Asymptote 或转换 unix 命令?
-
谢谢!转换效果不佳。
-
请注意,您也可以使用 Java 在“终端”模式下运行。只需使用“-nodesktop”标志而不是“-nojava”标志启动 MATLAB。
标签: image matlab imagemagick eps