博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
export frames as pictures
阅读量:4041 次
发布时间:2019-05-24

本文共 931 字,大约阅读时间需要 3 分钟。

function show_initilization%show_target(0.2, 1)%show_template('v4_mesh0.obj', 0.5, 1, 'interp')name = 'target.obj';%options = [];options.name = name;[vertex,faces] = read_mesh(name);vertex = vertex * 0.01;vertex = vertex + repmat([0 -0.9 0], size(vertex,1), 1);options = [];%options = arrayfun(@(x) show_frame(x, vertex, faces,options), 0 );show_frame(1, vertex, faces, options);endfunction options = show_frame(index, vertex, faces, options)clf;%iptsetpref('ImshowBorder','tight'); show_target(vertex, faces, 0.2, 0, 1);name = strcat(strcat('h2g',num2str(index)),'.obj');    %name = 'coarse_mesh000.obj'name = 'v6_mesh.obj' options = show_template(name, 1, 1, 'interp', 1, 0, options);drawnow;set(gcf,'units','normalized','outerposition',[0 0 1 1]);%fullscreenset(gcf,'color',[1 1 1]);%set figure background colorF = getframe(gcf);X = frame2im(F);save_name = strcat(strcat('frame', num2str(index)),'.png');imwrite(X, save_name)end

转载地址:http://svxdi.baihongyu.com/

你可能感兴趣的文章
Jenkins中shell-script执行报错sh: line 2: npm: command not found
查看>>
8.X版本的node打包时,gulp命令报错 require.extensions.hasownproperty
查看>>
Jenkins 启动命令
查看>>
Maven项目版本继承 – 我必须指定父版本?
查看>>
Maven跳过单元测试的两种方式
查看>>
通过C++反射实现C++与任意脚本(lua、js等)的交互(二)
查看>>
利用清华镜像站解决pip超时问题
查看>>
[leetcode BY python]1两数之和
查看>>
微信小程序开发全线记录
查看>>
PTA:一元多项式的加乘运算
查看>>
CCF 分蛋糕
查看>>
解决python2.7中UnicodeEncodeError
查看>>
小谈python 输出
查看>>
Django objects.all()、objects.get()与objects.filter()之间的区别介绍
查看>>
python:如何将excel文件转化成CSV格式
查看>>
机器学习实战之决策树(一)
查看>>
机器学习实战之决策树二
查看>>
[LeetCode By Python]7 Reverse Integer
查看>>
[leetCode By Python] 14. Longest Common Prefix
查看>>
[LeetCode By Python]118. Pascal's Triangle
查看>>