【发布时间】:2013-08-19 01:57:09
【问题描述】:
我正在尝试在 Octave 中创建一些视频。我有一个 matlab 文件可以做我想做的事,但我正试图让它在 Octave 中工作。基本上,函数“硬拷贝”是此代码中使用的未记录的 matlab 函数,我想用对八度音程友好的东西替换它。
我在这里找到了一个反向解决方案(有人试图使用硬拷贝):http://www.mathworks.com/support/solutions/en/data/1-3NMHJ5/?solution=1-3NMHJ5
但我是 matlab 和 octave 方面的超级新手,所以虽然该解决方案的选项 2 看起来会起作用(我认为 octave 具有 imread 功能)但我不知道要对代码进行哪些更改有(我没有写它,而且,正如我所说,我不知道matlab)。代码是
% add this frame to movie file
%mov = addframe(mov,gcf);
renderer = get(hnd,'renderer');
if strcmp(renderer,'painters')
renderer = 'opengl';
end
set(hnd, 'Units', 'pixels');
pixelsperinch = get(0,'screenpixelsperInch');
frame = hardcopy(hnd, ['-d' renderer], ['-r' num2str(round(pixelsperinch))]);
addframe(mov,frame);
有人知道如何将硬拷贝功能换成替代品吗?
【问题讨论】:
标签: matlab image-processing frame octave video-processing