Changeset 73 for trunk/src/set_grid.m


Ignore:
Timestamp:
Mar 30, 2010, 11:50:35 PM (14 years ago)
Author:
sommeria
Message:

ima2vol: provides volume images in 16 bit (presently needed for the software 3D3C)
set_grid: small bug repairs
uvmat: small bug repairs.
civ: bug repair following previous changes (RUN and BATCH functions merged)
plot_field: cleaning of parameter transmission. Introduction of a parameter handle of a text box (not yet used)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_grid.m

    r46 r73  
    482482     tsaiA=[];
    483483end
    484 [grid_imaA(:,1),grid_imaA(:,2)]=px_XYZ(tsaiA,grid_real(:,1),grid_real(:,2),0);
     484size(grid_real)
     485tsaiA
     486if isempty(tsaiA)
     487    grid_imaA(:,1)=grid_real(:,1);
     488    grid_imaA(:,2)=grid_real(:,2);
     489else
     490    [grid_imaA(:,1),grid_imaA(:,2)]=px_XYZ(tsaiA,grid_real(:,1),grid_real(:,2),0);
     491end
    485492    A=imread(imageA);
    486493   siz=size(A);
     
    537544grid_real2(:,2)=grid_real_y;
    538545grid_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));
     546if isempty(tsaiA)
     547    grid_pix_A(:,1)=grid_real2(:,1);
     548   grid_pix_A(:,2)= grid_real2(:,2);
     549else
     550    [grid_pix_A(:,1),grid_pix_A(:,2)]=px_XYZ(tsaiA,grid_real2(:,1),grid_real2(:,2));
     551end
    540552if testB
    541553    [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.