- Timestamp:
- Apr 15, 2014, 9:07:44 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys.m
r695 r742 275 275 end 276 276 end 277 xima= [0.5:npx-0.5];%image coordiantes of corners277 xima=0.5:npx-0.5;%image coordinates of corners 278 278 yima=npy-0.5:-1:0.5; 279 [XIMA_init,YIMA_init]=meshgrid(xima,yima);%grid of initial image in px coordi antes279 [XIMA_init,YIMA_init]=meshgrid(xima,yima);%grid of initial image in px coordinates 280 280 [XIMA,YIMA]=px_XYZ(CalibIn{icell},X,Y,zphys);% image coordinates for each point in the real 281 281 %[XPHYS_init,YPHYS_init]=phys_XYZ(Calib,XIMA_init,YIMA_init,ZIndex); 282 283 282 testuint8=isa(A{icell},'uint8'); 283 testuint16=isa(A{icell},'uint16'); 284 284 if ndims(A{icell})==2 %(B/W images) 285 285 A_out{icell}=interp2(XIMA_init,YIMA_init,double(A{icell}),XIMA,YIMA);
Note: See TracChangeset
for help on using the changeset viewer.