Changeset 1111 for trunk/src/px_XYZ.m


Ignore:
Timestamp:
Jan 26, 2022, 9:31:42 AM (3 years ago)
Author:
sommeria
Message:

3D calibration corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/px_XYZ.m

    r1107 r1111  
    4747        H=Calib.InterfaceCoord(3);
    4848        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           
    5051          %  test_refraction=1;
    5152        end
     
    5354   
    5455    %camera coordinates
     56    Zphys=-Zphys;%flip z coordinates
    5557    xc=R(1)*Xphys+R(2)*Yphys+R(3)*Zphys+Calib.Tx_Ty_Tz(1);
    5658    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.