Ignore:
Timestamp:
Jun 24, 2024, 6:38:26 PM (6 days ago)
Author:
sommeria
Message:

browse_data improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r1148 r1150  
    346346                        display([XmlName ' updated with calibration parameters' dispmessage])
    347347                    else
    348                         display([XmlName ' created with calibration parameters' dispmessage])
     348                        display([XmlName ' created with calibration parameters: no timing defined' dispmessage])
    349349                    end
    350350                end
     
    396396%------------------------------------------------------------------------
    397397% --- Executes on button press in Replicate
    398     function Replicate_Callback(hObject, eventdata, handles)
    399         % %------------------------------------------------------------------------
    400         set(handles.CheckEnableMouse,'Value',0)% desactivate mouse (to avoid spurious creation of new points)
    401        
    402         if get(handles.Replicate,'Value') %open the GUI browse_data
    403             % look for the GUI uvmat and check for an image as input
    404             huvmat=findobj(allchild(0),'Name','uvmat');
    405             hhuvmat=guidata(huvmat);%handles of elements in the GUI uvmat
    406             RootPath=get(hhuvmat.RootPath,'String');
    407             SubDir=get(hhuvmat.SubDir,'String');
    408             browse_data(fullfile(RootPath,SubDir))
    409         else
    410             hbrowse=findobj(allchild(0),'Tag','browse_data');
    411             if ~isempty(hbrowse)
    412                 delete(hbrowse)
    413             end
    414         end
     398function Replicate_Callback(hObject, eventdata, handles)
     399% %------------------------------------------------------------------------
     400set(handles.CheckEnableMouse,'Value',0)% desactivate mouse (to avoid spurious creation of new points)
     401
     402if get(handles.Replicate,'Value') %open the GUI browse_data
     403    % look for the GUI uvmat and check for an image as input
     404    huvmat=findobj(allchild(0),'Name','uvmat');
     405    hhuvmat=guidata(huvmat);%handles of elements in the GUI uvmat
     406    RootPath=get(hhuvmat.RootPath,'String');
     407    SubDir=get(hhuvmat.SubDir,'String');
     408    browse_data(fullfile(RootPath,SubDir))
     409else
     410    hbrowse=findobj(allchild(0),'Tag','browse_data');
     411    if ~isempty(hbrowse)
     412        delete(hbrowse)
     413    end
     414end
    415415%------------------------------------------------------------------------
    416416% --- activate calibration and store parameters in ouputfile .
     
    12941294    Heading=s.Heading;
    12951295end
    1296 
     1296if isfield (s,'GeometryCalib')
    12971297GeometryCalib=s.GeometryCalib;
    12981298fx=1;fy=1;Cx=0;Cy=0;kc=0; %default
     
    13411341    set(handles.CheckEnableMouse,'BackgroundColor',[0.7 0.7 0.7])
    13421342end
    1343 
     1343end
    13441344%------------------------------------------------------------------------
    13451345%---display calibration intrinsic parameters
Note: See TracChangeset for help on using the changeset viewer.