【问题标题】:How imwrite in loop write many different images in Octave/Matlab循环中的 imwrite 如何在 Octave/Matlab 中写入许多不同的图像
【发布时间】:2015-05-18 03:48:32
【问题描述】:

在循环中生成图像时我使用这个字符串

imwrite(IWindow, gray(256), 'plane', 'tif');

来写这个迭代的图像。 在这个循环中,我有 z 迭代器。

【问题讨论】:

  • 有问题吗?
  • 如何在每个图像名称中替换我的 z 值?现在图像名称为“plane”。

标签: matlab loops image-processing octave


【解决方案1】:

这样-

 for z=1:num
      fname=sprintf ('plane%d.tif', z);
      imwrite (IWindow, gray (256), fname);
 end

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多