Changeset 1051 for trunk/src/uvmat.m
- Timestamp:
- Jun 27, 2018, 11:20:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1049 r1051 2615 2615 RootPath=MaskPath; 2616 2616 end 2617 if mdetect==0 2617 if mdetect==0 % if no mask is detected in the current folder 2618 2618 MaskFullName=uigetfile_uvmat('pick a mask image file:',RootPath,'image'); 2619 2619 if isempty(MaskFullName) … … 2633 2633 else 2634 2634 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); 2635 2642 end 2636 2643 Mask.Ext=MaskExt; … … 2657 2664 errormsg=[];%default 2658 2665 Mask=get(handles.CheckMask,'UserData'); 2659 MaskIndex=1;2660 2666 if strcmp(get(handles.z_index,'Visible'),'on') 2661 MaskIndex=str2num(get(handles.z_index,'String')); 2667 MaskIndex_i=str2num(get(handles.z_index,'String')); 2668 else 2669 MaskIndex_i=mod(str2num(get(handles.i1,'String')),Mask.NbSlice_i); 2670 end 2671 if Mask.NbSlice_j>1 2672 MaskIndex_j=str2num(get(handles.j1,'String')); 2673 else 2674 MaskIndex_j=1; 2662 2675 end 2663 2676 if isfield(Mask,'maskhandle')&& ishandle(Mask.maskhandle) 2664 2677 uistack(Mask.maskhandle,'top'); 2665 2678 end 2666 MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex );2679 MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex_i,[],MaskIndex_j); 2667 2680 UvData=get(handles.uvmat,'UserData'); 2668 2681 … … 2689 2702 return 2690 2703 end 2691 MaskField.ZIndex=MaskIndex ;2704 MaskField.ZIndex=MaskIndex_i; 2692 2705 %px to phys or other transform on field 2693 2706 menu_transform=get(handles.TransformName,'String');
Note: See TracChangeset
for help on using the changeset viewer.