% A4M33TZ HW-02
% pajdla@cmp.felk.cvut.cz
% 21 Feb 2010

% load 3D points and 2D projections
load 001-ux.mat
im = imread('001.jpg');

figure;
% 3D points
subplot(1,2,1)
plot3(x(1,:),x(2,:),x(3,:),'.');
grid
axis equal
view([0 40])

% image & 2D projections
subplot(1,2,2)
imagesc(im);
axis image
hold on
plot(u(1,:),u(2,:),'y.');
