Changeset 1085 for trunk/src/phys_ima.m


Ignore:
Timestamp:
Aug 11, 2020, 8:06:46 PM (4 months ago)
Author:
sommeria
Message:

aver_spectral added andsmall bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_ima.m

    r1078 r1085  
    6666        % the image needs to be interpolated to the new coordinates
    6767        Z=0; %default
    68         if isfield(Calib,'SliceCoord') %.Z= index of plane
     68        if isfield(Calib,'SliceCoord')&& size(Calib.SliceCoord,1)>=ZIndex %.Z= index of plane
    6969            SliceCoord=Calib.SliceCoord(ZIndex,:);
    7070            Z=SliceCoord(3);
Note: See TracChangeset for help on using the changeset viewer.