Changeset 971 for trunk/src/proj_field.m


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

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r967 r971  
    1919%    .Type : type of projection object
    2020%    .ProjMode=mode of projection ;
    21 %    .CoordUnit: 'px', 'cm' units for the coordinates defining the object
     21%    .CoordUnit: 'px', 'cm' units for the coordinates defining the
     22%    objectuvmat
     23
    2224%    .Angle (  angles of rotation (=[0 0 0] by default)
    2325%    .ProjAngle=angle of projection;
     
    15741576                    ProjData.(AXName)=[coord_x_proj(1) coord_x_proj(end)]; %record the new (projected ) x coordinates
    15751577                    [X,YI]=meshgrid(coord_x_proj,coord_y_proj);%grid in the new coordinates
    1576                     XI=ObjectData.Coord(1,1)+(X)*cos(PlaneAngle(3))-YI*sin(PlaneAngle(3));%corresponding coordinates in the original system
    1577                     YI=ObjectData.Coord(1,2)+(X)*sin(PlaneAngle(3))+YI*cos(PlaneAngle(3));
     1578                    XI=ObjectData.Coord(1,1)+(X)*cos(PlaneAngle(2))-YI*sin(PlaneAngle(1));%corresponding coordinates in the original system
     1579                    YI=ObjectData.Coord(1,2)+(X)*sin(PlaneAngle(2))+YI*cos(PlaneAngle(1));
    15781580                    if numel(Coord{1})==2% x coordiante defiend by its bounds, get the whole set
    15791581                        Coord{1}=linspace(Coord{1}(1),Coord{1}(2),CellInfo{icell}.CoordSize(1));
Note: See TracChangeset for help on using the changeset viewer.