Changeset 970 for trunk/src/phys_ima.m


Ignore:
Timestamp:
Nov 9, 2016, 7:12:32 PM (8 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_ima.m

    r922 r970  
    6767           SliceCoord=Calib.SliceCoord(ZIndex,:);
    6868           zphys=SliceCoord(3); %to generalize for non-parallel planes
     69           
     70%         if isfield(Calib,'SliceAngle')&&~isequal(Calib.SliceAngle,[0 0 0])
     71%                     om=norm(Calib.SliceAngle);%norm of rotation angle in radians
     72%                     OmAxis=Calib.SliceAngle/om; %unit vector marking the rotation axis
     73%                     cos_om=cos(pi*om/180);
     74%                     sin_om=sin(pi*om/180);
     75%                     pos=[xy(1,1) xy(1,2) 0];
     76%                     pos=cos_om*pos+sin_om*cross(OmAxis,pos)+(1-cos_om)*(OmAxis*pos')*OmAxis;
     77%                 end
     78           
     79           
    6980%            if isfield(Calib,'InterfaceCoord') && isfield(Calib,'RefractionIndex')
    7081%                 H=Calib.InterfaceCoord(3);
Note: See TracChangeset for help on using the changeset viewer.