Changeset 922 for trunk/src/phys_ima.m


Ignore:
Timestamp:
Nov 24, 2015, 10:48:46 AM (8 years ago)
Author:
sommeria
Message:

corrections quentin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_ima.m

    r892 r922  
    4040Rangy(1)=max(ycorner);
    4141test_multi=(max(npx)~=min(npx)) || (max(npy)~=min(npy)); %different image lengths
    42 npX=1+round((Rangx(2)-Rangx(1))/min(dx));% nbre of pixels in the new image (use the finest resolution min(dx) in the set of images)
    43 npY=1+round((Rangy(1)-Rangy(2))/min(dy));
     42% npX=1+round((Rangx(2)-Rangx(1))/min(dx));% nbre of pixels in the new image (use the finest resolution min(dx) in the set of images)
     43% npY=1+round((Rangy(1)-Rangy(2))/min(dy));
     44
     45npX=1+round((Rangx(2)-Rangx(1))/max(dx));% nbre of pixels in the new image (use the largest resolution max(dx) in the set of images)
     46npY=1+round((Rangy(1)-Rangy(2))/max(dy));
     47
     48
    4449x=linspace(Rangx(1),Rangx(2),npX);
    4550y=linspace(Rangy(1),Rangy(2),npY);
     
    6974%            end
    7075        end
    71         xima=0.5:npx-0.5;%image coordinates of corners
    72         yima=npy-0.5:-1:0.5;
     76        xima=0.5:npx(icell)-0.5;%image coordinates of corners
     77        yima=npy(icell)-0.5:-1:0.5;
    7378        [XIMA_init,YIMA_init]=meshgrid(xima,yima);%grid of initial image in px coordinates
    7479        [XIMA,YIMA]=px_XYZ(XmlData{icell}.GeometryCalib,X,Y,zphys);% image coordinates for each point in the real
Note: See TracChangeset for help on using the changeset viewer.