Changeset 73 for trunk/src/set_grid.m
 Timestamp:
 Mar 30, 2010, 11:50:35 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/set_grid.m
r46 r73 482 482 tsaiA=[]; 483 483 end 484 [grid_imaA(:,1),grid_imaA(:,2)]=px_XYZ(tsaiA,grid_real(:,1),grid_real(:,2),0); 484 size(grid_real) 485 tsaiA 486 if isempty(tsaiA) 487 grid_imaA(:,1)=grid_real(:,1); 488 grid_imaA(:,2)=grid_real(:,2); 489 else 490 [grid_imaA(:,1),grid_imaA(:,2)]=px_XYZ(tsaiA,grid_real(:,1),grid_real(:,2),0); 491 end 485 492 A=imread(imageA); 486 493 siz=size(A); … … 537 544 grid_real2(:,2)=grid_real_y; 538 545 grid_real2(:,3)=zeros(nx_patch_new,1); 539 [grid_pix_A(:,1),grid_pix_A(:,2)]=px_XYZ(tsaiA,grid_real2(:,1),grid_real2(:,2)); 546 if isempty(tsaiA) 547 grid_pix_A(:,1)=grid_real2(:,1); 548 grid_pix_A(:,2)= grid_real2(:,2); 549 else 550 [grid_pix_A(:,1),grid_pix_A(:,2)]=px_XYZ(tsaiA,grid_real2(:,1),grid_real2(:,2)); 551 end 540 552 if testB 541 553 [grid_pix_B(:,1),grid_pix_B(:,2)]=px_XYZ(tsaiB,grid_real2(:,1),grid_real2(:,2));
Note: See TracChangeset
for help on using the changeset viewer.