Changeset 971 for trunk/src/proj_field.m
- Timestamp:
- Nov 9, 2016, 7:47:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r967 r971 19 19 % .Type : type of projection object 20 20 % .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 22 24 % .Angle ( angles of rotation (=[0 0 0] by default) 23 25 % .ProjAngle=angle of projection; … … 1574 1576 ProjData.(AXName)=[coord_x_proj(1) coord_x_proj(end)]; %record the new (projected ) x coordinates 1575 1577 [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 system1577 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)); 1578 1580 if numel(Coord{1})==2% x coordiante defiend by its bounds, get the whole set 1579 1581 Coord{1}=linspace(Coord{1}(1),Coord{1}(2),CellInfo{icell}.CoordSize(1));
Note: See TracChangeset
for help on using the changeset viewer.