matlab rotate 3d plot and capture frames
for k=-31:1:31
az = k;
el = 31;
h = surfc(X,Y,LUT1);
view(az,el);
% set(gcf, 'Renderer', 'OpenGL'); % OpenGL driver has issues in Vista????
set(gcf, 'Renderer', 'Zbuffer');
F = getframe;
G = frame2im(F);
imwrite(G, [out_path 'out_' num2str(k, '%04d') '.bmp'], 'bmp');
end

0 Comments:
Post a Comment
<< Home