flying camera view changes

release/4.3a0
lvzhaoyang 2015-01-21 16:18:03 -05:00
parent 5cde63acd2
commit 2627f9a9cd
3 changed files with 11 additions and 8 deletions

View File

@ -19,10 +19,7 @@ end
figID = 1;
figure(figID);
axis equal
axis([0, options.fieldSize.x, 0, options.fieldSize.y, 0, 20]);
view(3);
view([30, 0]);
sampleDensity = 120;
cylinderNum = length(cylinders);
@ -34,7 +31,7 @@ for i = 1:cylinderNum
Z = Z * cylinders{i}.height;
h_cylinder = surf(X,Y,Z);
set(h_cylinder, 'FaceAlpha', 0.5);
set(h_cylinder, 'FaceColor', [0 0 0.5], 'FaceAlpha', 0.2, 'EdgeColor', [0 0 1]);
hold on
end
@ -98,6 +95,9 @@ for i = 1:posesSize
end
end
axis equal
axis([0, options.fieldSize.x, 0, options.fieldSize.y, 0, 20]);
drawnow;
if options.writeVideo
@ -114,6 +114,11 @@ end
% wait for two seconds
pause(2);
% change views
for i = 0 : 0.5 : 60
view([i + 30, i]);
end
%% plot point covariance

View File

@ -103,7 +103,5 @@ end
%plot3DPoints(initialEstimate, [], marginals);
%plot3DTrajectory(initialEstimate, '*', 1, 8, marginals);
view(3);
end

View File

@ -138,7 +138,7 @@ KMono = Cal3_S2(525,525,0,320,240);
cameraPoses = cell(options.poseNum, 1);
theta = 0;
for i = 1:options.poseNum
t = Point3([(i-1)*(options.fieldSize.x - 20)/options.poseNum + 20, ...
t = Point3([(i-1)*(options.fieldSize.x - 10)/options.poseNum + 10, ...
15, 10]');
camera = SimpleCamera.Lookat(t, ...
Point3(options.fieldSize.x/2, options.fieldSize.y/2, 0), ...