Changeset 384 for trunk/src/uvmat.m
- Timestamp:
- Mar 11, 2012, 11:47:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r383 r384 1354 1354 MaskName=fullfile_uvmat(RootPath,'',RootFile,'.png',MaskData.NomType,num_i1_mask,[],num_j1); 1355 1355 %MaskName=name_generator(MaskData.Base,num_i1_mask,num_j1,'.png',MaskData.NomType); 1356 huvmat=get(handles.CheckMask,'parent'); 1357 UvData=get(huvmat,'UserData'); 1358 1356 % huvmat=get(handles.CheckMask,'parent'); 1357 UvData=get(handles.uvmat,'UserData'); 1359 1358 %update mask image if the mask is new 1360 1359 if ~ (isfield(UvData,'MaskName') && isequal(UvData.MaskName,MaskName)) 1361 1360 UvData.MaskName=MaskName; %update the recorded name on UvData 1362 set(h uvmat,'UserData',UvData);1361 set(handles.uvmat,'UserData',UvData); 1363 1362 if ~exist(MaskName,'file') 1364 1363 if isfield(MaskData,'maskhandle')&& ishandle(MaskData.maskhandle) … … 1430 1429 function MenuExportFigure_Callback(hObject, eventdata, handles) 1431 1430 %------------------------------------------------------------------------ 1432 huvmat=get(handles.MenuExport,'parent');1431 % huvmat=get(handles.MenuExport,'parent'); 1433 1432 hfig=figure; 1434 1433 copyobj(handles.axes3,hfig); … … 1570 1569 i1=str2num(get(handles.i1,'String'));%read the field indices (for movie, it is not given by the file name) 1571 1570 i2=str2num(get(handles.i2,'String')); 1572 j1=stra2num(get(handles.j1,'String')); 1573 j2=stra2num(get(handles.j2,'String')); 1571 j1=1; 1572 if strcmp(get(handles.j1,'Visible'),'on') 1573 j1=stra2num(get(handles.j1,'String')); 1574 end 1575 j2=j1; 1576 if strcmp(get(handles.j2,'Visible'),'on') 1577 j2=stra2num(get(handles.j2,'String')); 1578 end 1574 1579 sub_value= get(handles.SubField,'Value'); 1575 1580 if sub_value % a second input file has been entered … … 3195 3200 % associate the set_object interface handle to the plotting axes 3196 3201 if isfield(UvData.OpenParam,'SetObjectOrigin') 3197 pos_uvmat=get(h uvmat,'Position');3202 pos_uvmat=get(handles.uvmat,'Position'); 3198 3203 pos_set_object(1:2)=UvData.OpenParam.SetObjectOrigin + pos_uvmat(1:2); 3199 3204 pos_set_object(3:4)=UvData.OpenParam.SetObjectSize .* pos_uvmat(3:4); … … 3205 3210 UvData.MouseAction='none'; 3206 3211 end 3207 set(h uvmat,'UserData',UvData)3212 set(handles.uvmat,'UserData',UvData) 3208 3213 3209 3214 %------------------------------------------------------- … … 3520 3525 %-------------------------------------------- 3521 3526 %plot first histo 3522 huvmat=get(handles.histo1_menu,'parent');3527 %huvmat=get(handles.histo1_menu,'parent'); 3523 3528 histo_menu=get(handles.histo1_menu,'String'); 3524 3529 histo_value=get(handles.histo1_menu,'Value'); 3525 3530 FieldName=histo_menu{histo_value}; 3526 update_histo(handles.histo_u,h uvmat,FieldName)3531 update_histo(handles.histo_u,handles.uvmat,FieldName) 3527 3532 3528 3533 %------------------------------------------------------------------------ … … 3530 3535 %------------------------------------------------------------------------ 3531 3536 %plot second histo 3532 huvmat=get(handles.histo2_menu,'parent');3537 %huvmat=get(handles.histo2_menu,'parent'); 3533 3538 histo_menu=get(handles.histo2_menu,'String'); 3534 3539 histo_value=get(handles.histo2_menu,'Value'); 3535 3540 FieldName=histo_menu{histo_value}; 3536 update_histo(handles.histo_v,h uvmat,FieldName)3541 update_histo(handles.histo_v,handles.uvmat,FieldName) 3537 3542 3538 3543 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.