Changeset 1111 for trunk/src/px_XYZ.m
- Timestamp:
- Jan 26, 2022, 9:31:42 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/px_XYZ.m
r1107 r1111 47 47 H=Calib.InterfaceCoord(3); 48 48 if H>Zphys 49 Zphys=H-(H-Zphys)/Calib.RefractionIndex; %corrected z (virtual object) 49 Zphys=H-(H-Zphys)/Calib.RefractionIndex; %corrected z (virtual object)Calib 50 50 51 % test_refraction=1; 51 52 end … … 53 54 54 55 %camera coordinates 56 Zphys=-Zphys;%flip z coordinates 55 57 xc=R(1)*Xphys+R(2)*Yphys+R(3)*Zphys+Calib.Tx_Ty_Tz(1); 56 58 yc=R(4)*Xphys+R(5)*Yphys+R(6)*Zphys+Calib.Tx_Ty_Tz(2);
Note: See TracChangeset
for help on using the changeset viewer.