Changeset 892 for trunk/src/phys_ima.m


Ignore:
Timestamp:
Apr 25, 2015, 6:17:19 PM (8 years ago)
Author:
sommeria
Message:

bug in refraction index fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_ima.m

    r849 r892  
     1
    12% phys_ima: transform several images in phys coordinates on a common pixel grid
    23%------------------------------------------------------------------------
     
    6162           SliceCoord=Calib.SliceCoord(ZIndex,:);
    6263           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>zphys
    66                     zphys=H-(H-zphys)/Calib.RefractionIndex; %corrected z (virtual object)
    67                 end
    68            end
     64%            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
    6970        end
    7071        xima=0.5:npx-0.5;%image coordinates of corners
Note: See TracChangeset for help on using the changeset viewer.