Ignore:
Timestamp:
Feb 25, 2025, 7:06:03 PM (2 weeks ago)
Author:
sommeria
Message:

Import export added for geometrycalib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r1173 r1174  
    14421442function Copy_Callback(hObject, eventdata, handles)
    14431443global Coord
    1444 evalin('base','global Coord')%make CurData global in the workspace
    1445 Coord=get(handles.ListCoord,'Data');
    1446 display('coordinates of calibration points (phys,px,marker) :')
    1447 evalin('base','Coord') %display CurData in the workspace
    1448 commandwindow; %brings the Matlab command window to the front
     1444if isequal (get(handles.Copy,'BackGroundColor'),[0 1 0])
     1445    evalin('base','global Coord')%make CurData global in the workspace
     1446    Coord=get(handles.ListCoord,'Data');
     1447    display('coordinates of calibration points (phys,px,marker) :')
     1448    evalin('base','Coord') %display CurData in the workspace
     1449    commandwindow; %brings the Matlab command window to the front
     1450    set(handles.Copy,'BackGroundColor',[1 1 0])
     1451    set(handles.Copy,'String','IMPORT PTS')
     1452else
     1453    set(handles.ListCoord,'Data',Coord)
     1454    set(handles.Copy,'String','EXPORT PTS')
     1455    set(handles.Copy,'BackGroundColor',[0 1 0])
     1456end
    14491457
    14501458%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.