Changeset 892 for trunk/src/phys_ima.m
- Timestamp:
- Apr 25, 2015, 6:17:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/phys_ima.m
r849 r892 1 1 2 % phys_ima: transform several images in phys coordinates on a common pixel grid 2 3 %------------------------------------------------------------------------ … … 61 62 SliceCoord=Calib.SliceCoord(ZIndex,:); 62 63 zphys=SliceCoord(3); %to generalize for non-parallel planes 63 if isfield(Calib,'InterfaceCoord') && isfield(Calib,'RefractionIndex')64 H=Calib.InterfaceCoord(3);65 if H>zphys66 zphys=H-(H-zphys)/Calib.RefractionIndex; %corrected z (virtual object)67 end68 end64 % if isfield(Calib,'InterfaceCoord') && isfield(Calib,'RefractionIndex') 65 % H=Calib.InterfaceCoord(3); 66 % if H>zphys 67 % zphys=H-(H-zphys)/Calib.RefractionIndex; %corrected z (virtual object) 68 % end 69 % end 69 70 end 70 71 xima=0.5:npx-0.5;%image coordinates of corners
Note: See TracChangeset
for help on using the changeset viewer.