Changeset 63 for trunk/src


Ignore:
Timestamp:
Mar 24, 2010, 2:10:54 PM (15 years ago)
Author:
sommeria
Message:

bug corrected on geometry_calib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r62 r63  
    936936
    937937%reorder the last two points if needed
    938 angles=angle((corners_X-corners_X(1))+i*(corners_Y-corners_Y(1));
     938angles=angle((corners_X-corners_X(1))+i*(corners_Y-corners_Y(1)));
    939939if abs(angles(4)-angles(2))>abs(angles(3)-angles(2))
    940940      X_end=corners_X(4);
     
    10071007Tmod=T(:,(1:2))+Delta;
    10081008[Xpx,Ypx]=px_XYZ(GeometryCalib,Tmod(:,1),Tmod(:,2));
    1009 for i=1:nbpoints
    1010      Coord{i,1}=num2str(T(i,1),4);%display coordiantes with 4 digits
    1011      Coord{i,2}=num2str(T(i,2),4);%display coordiantes with 4 digits
    1012      Coord{i,3}='0';
    1013      Coord{i,4}=num2str(Xpx(i),4);%display coordiantes with 4 digi
    1014      Coord{i,5}=num2str(Ypx(i),4);%display coordiantes with 4 digi
     1009for ipoint=1:nbpoints
     1010     Coord{ipoint,1}=num2str(T(ipoint,1),4);%display coordiantes with 4 digits
     1011     Coord{ipoint,2}=num2str(T(ipoint,2),4);%display coordiantes with 4 digits
     1012     Coord{ipoint,3}='0';
     1013     Coord{ipoint,4}=num2str(Xpx(ipoint),4);%display coordiantes with 4 digi
     1014     Coord{ipoint,5}=num2str(Ypx(ipoint),4);%display coordiantes with 4 digi
    10151015end
    10161016Tabchar=cell2tab(Coord,'    |    ');
Note: See TracChangeset for help on using the changeset viewer.