Changeset 922 for trunk/src/phys_ima.m
- Timestamp:
- Nov 24, 2015, 10:48:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/phys_ima.m
r892 r922 40 40 Rangy(1)=max(ycorner); 41 41 test_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 45 npX=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) 46 npY=1+round((Rangy(1)-Rangy(2))/max(dy)); 47 48 44 49 x=linspace(Rangx(1),Rangx(2),npX); 45 50 y=linspace(Rangy(1),Rangy(2),npY); … … 69 74 % end 70 75 end 71 xima=0.5:npx -0.5;%image coordinates of corners72 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; 73 78 [XIMA_init,YIMA_init]=meshgrid(xima,yima);%grid of initial image in px coordinates 74 79 [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.