Changeset 388 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 6, 2012, 4:37:12 PM (9 years ago)
Author:
sommeria
Message:

several bugs corrected
file indexing, color images...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r387 r388  
    16311631            ref_j=ref_j+increment;
    16321632        end
    1633     else% free increment
     1633    else % free increment
    16341634        if isequal(get(handles.runplus,'BackgroundColor'),[1 1 0])% if runplus is activated
    16351635            step=1;
     
    16621662    end
    16631663    if get(handles.scan_i,'Value')==1% case of scanning along index i
    1664         i1_subseries=UvData.i1_series{1}(ref_i+1,:,:);
     1664        i1_subseries=UvData.i1_series{1}(ref_i+1,ref_j+1,:);
    16651665    else
    1666         i1_subseries=UvData.i1_series{1}(:,ref_j+1,:);
     1666        i1_subseries=UvData.i1_series{1}(ref_i+1,ref_j+1,:);
    16671667    end
    16681668    i1_subseries=i1_subseries(i1_subseries>0);
     
    16741674    if ~isempty(UvData.i2_series{1})
    16751675        if get(handles.scan_i,'Value')==1% case of scanning along index i
    1676             i2_subseries=UvData.i2_series{1}(ref_i+1,:,:);
     1676            i2_subseries=UvData.i2_series{1}(ref_i+1,ref_j+1,:);
    16771677        else
    1678             i2_subseries=UvData.i2_series{1}(:,ref_j+1,:);
     1678            i2_subseries=UvData.i2_series{1}(ref_i+1,ref_j+1,:);
    16791679        end
    16801680        i2_subseries=i2_subseries(i2_subseries>0);
     
    16831683    if ~isempty(UvData.j1_series{1})
    16841684        if get(handles.scan_i,'Value')==1% case of scanning along index i
    1685             j1_subseries=UvData.j1_series{1}(ref_i+1,:,:);
     1685            j1_subseries=UvData.j1_series{1}(ref_i+1,ref_j+1,:);
    16861686        else
    1687             j1_subseries=UvData.j1_series{1}(:,ref_j+1,:);
     1687            j1_subseries=UvData.j1_series{1}(ref_i+1,ref_j+1,:);
    16881688        end
    16891689        j1_subseries=j1_subseries(j1_subseries>0);
     
    16921692    if ~isempty(UvData.j2_series{1})
    16931693        if get(handles.scan_i,'Value')==1% case of scanning along index i
    1694             j2_subseries=UvData.j2_series{1}(ref_i+1,:,:);
     1694            j2_subseries=UvData.j2_series{1}(ref_i+1,ref_j+1,:);
    16951695        else
    1696             j2_subseries=UvData.j2_series{1}(:,ref_j+1,:);
     1696            j2_subseries=UvData.j2_series{1}(ref_i+1,ref_j+1,:);
    16971697        end
    16981698        j2_subseries=j2_subseries(j2_subseries>0);
Note: See TracChangeset for help on using the changeset viewer.