【问题标题】:To store the altered image as an image in matlab [duplicate]将更改后的图像存储为matlab中的图像[重复]
【发布时间】:2013-11-19 19:04:59
【问题描述】:
final = decimal;
figure('Name','Final EMBEDED Image'),imshow(final);
[image path] = uiputfile({'*.jpg';'*.bmp';'*.tif'},'Save Encoded File As');

final 是更改后的图像。 我必须通过动态提供图像的路径和名称来存储该图像。为此,我尝试了 uiputfile。该功能正在工作,但没有达到目的。

【问题讨论】:

    标签: matlab


    【解决方案1】:

    uiputfile 只返回用户选择的文件名和路径,它不保存任何内容。您仍然需要以某种方式保存图像:

    fname = fullfile(path, image);
    imwrite(final, fname);
    

    【讨论】:

      猜你喜欢
      • 2010-10-09
      • 2023-04-10
      • 1970-01-01
      • 2015-02-13
      • 1970-01-01
      • 1970-01-01
      • 2011-08-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多