%clear;
%clc;
%load('punti_di_prova.mat');
%rotazione delle telecamera
%for cont=0:0.1:3.14/4
a=pi/4;
%R=rotaz(3*a, 0, a);
R=rotaz(0, a, a);
%traslazione delle telecamera
%T=[0.5; 0.5;-0.5;10];
T=[0;0;1];
%matrice K
K=[1 0 0;0 1 0; 0 0 1];
%distanza fuoco della telecamera:
f=1;

P2D=camera_simulation(R, T, P3D, K);
hold on;
plot(P2D(1,1),P2D(2,1),'o');
plot(P2D(1,2),P2D(2,2),'o','color','red');
plot(P2D(1,3),P2D(2,3),'o','color','green');
plot(P2D(1,4),P2D(2,4),'o','color','black');
plot(P2D(1,5),P2D(2,5),'+','color','black');
plot(P2D(1,6),P2D(2,6),'+','color','green');
plot(P2D(1,7),P2D(2,7),'+','color','red');
%pause;
%end