Changeset 1051 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 27, 2018, 11:20:37 PM (4 years ago)
Author:
sommeria
Message:

psmsn cluster command updated, pb with multimask solved...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r1049 r1051  
    26152615        RootPath=MaskPath;
    26162616    end
    2617     if mdetect==0
     2617    if mdetect==0 % if no mask is detected in the current folder
    26182618        MaskFullName=uigetfile_uvmat('pick a mask image file:',RootPath,'image');
    26192619        if isempty(MaskFullName)
     
    26332633    else
    26342634        Mask.File=MaskFile{1};
     2635    end
     2636    Mask.NbSlice_i=1;
     2637    Mask.NbSlice_j=1;
     2638    if isempty(j1_series)
     2639        Mask.NbSlice_i=i1_series(1,2,end);
     2640    else
     2641        Mask.NbSlice_j=j1_series(1,end,2);
    26352642    end
    26362643    Mask.Ext=MaskExt;
     
    26572664errormsg=[];%default
    26582665Mask=get(handles.CheckMask,'UserData');
    2659 MaskIndex=1;
    26602666if strcmp(get(handles.z_index,'Visible'),'on')
    2661     MaskIndex=str2num(get(handles.z_index,'String'));
     2667    MaskIndex_i=str2num(get(handles.z_index,'String'));
     2668else
     2669    MaskIndex_i=mod(str2num(get(handles.i1,'String')),Mask.NbSlice_i);
     2670end
     2671if Mask.NbSlice_j>1
     2672    MaskIndex_j=str2num(get(handles.j1,'String'));
     2673else
     2674    MaskIndex_j=1;
    26622675end
    26632676if isfield(Mask,'maskhandle')&& ishandle(Mask.maskhandle)
    26642677    uistack(Mask.maskhandle,'top');
    26652678end
    2666 MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex);
     2679MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex_i,[],MaskIndex_j);
    26672680UvData=get(handles.uvmat,'UserData');
    26682681
     
    26892702            return
    26902703        end
    2691         MaskField.ZIndex=MaskIndex;
     2704        MaskField.ZIndex=MaskIndex_i;
    26922705        %px to phys or other transform on field
    26932706         menu_transform=get(handles.TransformName,'String');
Note: See TracChangeset for help on using the changeset viewer.