Changeset 116 for trunk/src/uvmat.m


Ignore:
Timestamp:
Oct 16, 2010, 5:56:00 PM (14 years ago)
Author:
sommeria
Message:

geometry_calib is now updated when a new image is viewed by uvmat
imadoc2struct corrected for time reading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r114 r116  
    744744    set(handles.view_xml,'BackgroundColor',[1 1 1])
    745745    drawnow
     746    if isfield(XmlData, 'GeometryCalib') && ~isempty(XmlData.GeometryCalib)
     747        hgeometry_calib=findobj('tag','geometry_calib');
     748        if ~isempty(hgeometry_calib)
     749            GUserData=get(hgeometry_calib,'UserData');
     750            if ~(isfield(GUserData,'XmlInputFile') && strcmp(GUserData.XmlInputFile,filexml))
     751                answer=msgbox_uvmat('INPUT_Y-N','replace the display of geometry_calib with the new input data?');
     752                if strcmp(answer,'Yes')
     753                    geometry_calib(filexml);%diplay the new calibration points and parameters in geometry_calib
     754                end
     755            end
     756        end
     757    end 
    746758elseif exist(fileciv,'file')% if .civ file found
    747759    [error,XmlData.Time,TimeUnit,mode,npx,npy,pxcmx,pxcmy]=read_imatext([FileBase '.civ']);
     
    45654577pos(2)=pos(2)-0.02;
    45664578[FileName,RootPath,FileBase,FileIndices,FileExt,SubDir]=read_file_boxes(handles);
    4567 [UvData.hset_object,UvData.sethandles]=geometry_calib(handles,pos,FileName);% call the set_object interface     
     4579[UvData.hset_object,UvData.sethandles]=geometry_calib(FileName,pos);% call the geometry_calib interface
    45684580pos_uvmat=get(handles.uvmat,'Position');
    45694581
Note: See TracChangeset for help on using the changeset viewer.