Changeset 202 for trunk/src/transform_field
- Timestamp:
- Feb 20, 2011, 2:52:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys.m
r167 r202 194 194 SliceCoord=Calib.SliceCoord(ZIndex,:); 195 195 zphys=SliceCoord(3); %to generalize for non-parallel planes 196 if isfield(Calib,'InterfaceCoord') && isfield(Calib,'RefractionIndex') 197 H=Calib.InterfaceCoord(3); 198 if H>zphys 199 zphys=H-(H-zphys)/Calib.RefractionIndex; %corrected z (virtual object) 200 end 201 end 196 202 end 197 203 [XIMA,YIMA]=px_XYZ(CalibIn{icell},X,Y,zphys);% image coordinates for each point in the real space grid … … 250 256 Zindex=Z; 251 257 Zphys=Calib.SliceCoord(Zindex,3);%GENERALISER AUX CAS AVEC ANGLE 258 if isfield(Calib,'InterfaceCoord') && isfield(Calib,'RefractionIndex') 259 H=Calib.InterfaceCoord(3); 260 if H>Zphys 261 Zphys=H-(H-Zphys)/Calib.RefractionIndex; %corrected z (virtual object) 262 end 263 end 252 264 else 253 265 Zphys=0;
Note: See TracChangeset
for help on using the changeset viewer.