calib = 105;    %pixels/cm
width=1920/calib;   %cm
height=1080/calib;  %cm

angle=45;
half=angle*0.5;
L=;
H=;

%% horizontal orientation of laser sheet
H1=2*L*tan(half*pi/180);
H2=2*(L+0.5*width)*tan(half*pi/180);
H3=2*(L+width)*tan(half*pi/180);

loss(1,1)=height-H1;
loss(2,1)=height-H2;
loss(3,1)=height-H3;

%% vertical orientation
L1=2*L*tan(half*pi/180);
L2=2*(L+0.5*height)*tan(half*pi/180);
L3=2*(L+height)*tan(half*pi/180);

loss(1,2)=width-L1;
loss(2,2)=width-L2;
loss(3,2)=width-L3;
