VisualISAMExample in MATLAB with all options enabled.
parent
734a18b02e
commit
6c18af309e
|
@ -11,11 +11,37 @@
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
clear
|
clear
|
||||||
figure(1);
|
%% Global variables used in VisualISAMExample
|
||||||
VisualISAMInitOptions
|
VisualISAMGlobalVars
|
||||||
|
|
||||||
|
%% Setting data options
|
||||||
|
TRIANGLE = true;
|
||||||
|
NCAMERAS = 20;
|
||||||
|
SHOW_IMAGES = false;
|
||||||
|
|
||||||
|
%% iSAM Options
|
||||||
|
HARD_CONSTRAINT = false;
|
||||||
|
POINT_PRIORS = false;
|
||||||
|
BATCH_INIT = true;
|
||||||
|
REORDER_INTERVAL = 10;
|
||||||
|
ALWAYS_RELINEARIZE = false;
|
||||||
|
|
||||||
|
%% Display Options
|
||||||
|
SAVE_GRAPH = false;
|
||||||
|
PRINT_STATS = true;
|
||||||
|
DRAW_INTERVAL = 4;
|
||||||
|
CAMERA_INTERVAL = 1;
|
||||||
|
DRAW_TRUE_POSES = false;
|
||||||
|
SAVE_FIGURES = false;
|
||||||
|
SAVE_GRAPHS = false;
|
||||||
|
|
||||||
|
%% Generate data and initialize iSAM with the first pose and points
|
||||||
VisualISAMGenerateData
|
VisualISAMGenerateData
|
||||||
VisualISAMInitialize
|
VisualISAMInitialize
|
||||||
|
figure;
|
||||||
VisualISAMPlot
|
VisualISAMPlot
|
||||||
|
|
||||||
|
%% Main loop for iSAM: stepping through all poses
|
||||||
for frame_i=2:NCAMERAS
|
for frame_i=2:NCAMERAS
|
||||||
VisualISAMStep
|
VisualISAMStep
|
||||||
if mod(frame_i,DRAW_INTERVAL)==0
|
if mod(frame_i,DRAW_INTERVAL)==0
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
VisualISAMGlobalVars
|
VisualISAMGlobalVars
|
||||||
sprintf('vData...')
|
|
||||||
|
|
||||||
%% Generate simulated data
|
%% Generate simulated data
|
||||||
points = {};
|
points = {};
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
VisualISAMGlobalVars
|
|
||||||
|
|
||||||
%% Data Options
|
|
||||||
TRIANGLE = true;
|
|
||||||
NCAMERAS = 20;
|
|
||||||
SHOW_IMAGES = false;
|
|
||||||
|
|
||||||
%% iSAM Options
|
|
||||||
HARD_CONSTRAINT = false;
|
|
||||||
POINT_PRIORS = false;
|
|
||||||
BATCH_INIT = true;
|
|
||||||
REORDER_INTERVAL=10;
|
|
||||||
ALWAYS_RELINEARIZE = false;
|
|
||||||
|
|
||||||
%% Display Options
|
|
||||||
SAVE_GRAPH = false;
|
|
||||||
PRINT_STATS = true;
|
|
||||||
DRAW_INTERVAL = 4;
|
|
||||||
CAMERA_INTERVAL = 1;
|
|
||||||
DRAW_TRUE_POSES = false;
|
|
||||||
SAVE_FIGURES = false;
|
|
||||||
SAVE_GRAPHS = false;
|
|
|
@ -37,9 +37,13 @@ sprintf('Done!')
|
||||||
t=toc;
|
t=toc;
|
||||||
% if DRAW_INTERVAL~=NCAMERAS, plot(frame_i,t,'b.'); end
|
% if DRAW_INTERVAL~=NCAMERAS, plot(frame_i,t,'b.'); end
|
||||||
if SAVE_FIGURES
|
if SAVE_FIGURES
|
||||||
print(h,'-dpng',sprintf('VisualiSAM%03d.png',frame_i));
|
fig2 = figure('visible','off');
|
||||||
|
newax = copyobj(h,fig2);
|
||||||
|
colormap(fig2,'hot');
|
||||||
|
set(newax, 'units', 'normalized', 'position', [0.13 0.11 0.775 0.815]);
|
||||||
|
print(fig2,'-dpng',sprintf('VisualiSAM%03d.png',frame_i));
|
||||||
end
|
end
|
||||||
if SAVE_GRAPHS
|
if SAVE_GRAPHS && (frame_i>1)
|
||||||
isam.saveGraph(sprintf('VisualiSAM%03d.dot',frame_i));
|
isam.saveGraph(sprintf('VisualiSAM%03d.dot',frame_i));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -22,7 +22,7 @@ function varargout = VisualISAM_gui(varargin)
|
||||||
|
|
||||||
% Edit the above text to modify the response to help VisualISAM_gui
|
% Edit the above text to modify the response to help VisualISAM_gui
|
||||||
|
|
||||||
% Last Modified by GUIDE v2.5 08-Jun-2012 16:03:16
|
% Last Modified by GUIDE v2.5 08-Jun-2012 23:53:47
|
||||||
|
|
||||||
% Begin initialization code - DO NOT EDIT
|
% Begin initialization code - DO NOT EDIT
|
||||||
gui_Singleton = 1;
|
gui_Singleton = 1;
|
||||||
|
@ -53,8 +53,8 @@ function VisualISAM_gui_OpeningFcn(hObject, eventdata, handles, varargin)
|
||||||
% varargin command line arguments to VisualISAM_gui (see VARARGIN)
|
% varargin command line arguments to VisualISAM_gui (see VARARGIN)
|
||||||
|
|
||||||
% Choose default command line output for VisualISAM_gui
|
% Choose default command line output for VisualISAM_gui
|
||||||
|
initOptions(handles)
|
||||||
handles.output = hObject;
|
handles.output = hObject;
|
||||||
VisualISAMInitOptions
|
|
||||||
|
|
||||||
% Update handles structure
|
% Update handles structure
|
||||||
guidata(hObject, handles);
|
guidata(hObject, handles);
|
||||||
|
@ -62,11 +62,51 @@ guidata(hObject, handles);
|
||||||
% UIWAIT makes VisualISAM_gui wait for user response (see UIRESUME)
|
% UIWAIT makes VisualISAM_gui wait for user response (see UIRESUME)
|
||||||
% uiwait(handles.figure1);
|
% uiwait(handles.figure1);
|
||||||
|
|
||||||
|
|
||||||
function showFramei(hObject, handles)
|
function showFramei(hObject, handles)
|
||||||
VisualISAMGlobalVars
|
VisualISAMGlobalVars
|
||||||
set(handles.frameStatus, 'String', sprintf('Frame: %d',frame_i));
|
set(handles.frameStatus, 'String', sprintf('Frame: %d',frame_i));
|
||||||
|
drawnow
|
||||||
guidata(hObject, handles);
|
guidata(hObject, handles);
|
||||||
|
|
||||||
|
function showWaiting(handles, status)
|
||||||
|
set(handles.waitingStatus,'String', status);
|
||||||
|
drawnow
|
||||||
|
guidata(handles.waitingStatus, handles);
|
||||||
|
|
||||||
|
function triangle = chooseDataset(handles)
|
||||||
|
str = cellstr(get(handles.dataset,'String'));
|
||||||
|
sel = get(handles.dataset,'Value');
|
||||||
|
switch str{sel}
|
||||||
|
case 'triangle'
|
||||||
|
triangle = true;
|
||||||
|
case 'cube'
|
||||||
|
triangle = false;
|
||||||
|
end
|
||||||
|
|
||||||
|
function initOptions(handles)
|
||||||
|
VisualISAMGlobalVars
|
||||||
|
%% Setting data options
|
||||||
|
TRIANGLE = chooseDataset(handles)
|
||||||
|
NCAMERAS = str2num(get(handles.numCamEdit,'String'))
|
||||||
|
SHOW_IMAGES = get(handles.showImagesCB,'Value')
|
||||||
|
|
||||||
|
%% iSAM Options
|
||||||
|
HARD_CONSTRAINT = get(handles.hardConstraintCB,'Value')
|
||||||
|
POINT_PRIORS = get(handles.pointPriorsCB,'Value')
|
||||||
|
set(handles.batchInitCB,'Value',1);
|
||||||
|
drawnow
|
||||||
|
BATCH_INIT = get(handles.batchInitCB,'Value')
|
||||||
|
REORDER_INTERVAL = str2num(get(handles.numCamEdit,'String'))
|
||||||
|
ALWAYS_RELINEARIZE = get(handles.alwaysRelinearizeCB,'Value')
|
||||||
|
|
||||||
|
%% Display Options
|
||||||
|
SAVE_GRAPH = get(handles.saveGraphCB,'Value')
|
||||||
|
PRINT_STATS = get(handles.printStatsCB,'Value')
|
||||||
|
DRAW_INTERVAL = str2num(get(handles.drawInterval,'String'))
|
||||||
|
CAMERA_INTERVAL = str2num(get(handles.cameraIntervalEdit,'String'))
|
||||||
|
DRAW_TRUE_POSES = get(handles.drawTruePosesCB,'Value')
|
||||||
|
SAVE_FIGURES = get(handles.saveFiguresCB,'Value')
|
||||||
|
SAVE_GRAPHS = get(handles.saveGraphsCB,'Value')
|
||||||
|
|
||||||
% --- Outputs from this function are returned to the command line.
|
% --- Outputs from this function are returned to the command line.
|
||||||
function varargout = VisualISAM_gui_OutputFcn(hObject, eventdata, handles)
|
function varargout = VisualISAM_gui_OutputFcn(hObject, eventdata, handles)
|
||||||
|
@ -84,13 +124,13 @@ function intializeButton_Callback(hObject, eventdata, handles)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
VisualISAMGlobalVars
|
VisualISAMGlobalVars
|
||||||
DRAW_INTERVAL = str2num(get(handles.drawInterval,'String')) ;
|
initOptions(handles)
|
||||||
NCAMERAS = str2num(get(handles.numCamEdit,'String')) ;
|
|
||||||
VisualISAMGenerateData
|
VisualISAMGenerateData
|
||||||
VisualISAMInitialize
|
VisualISAMInitialize
|
||||||
VisualISAMPlot
|
VisualISAMPlot
|
||||||
showFramei(hObject, handles)
|
showFramei(hObject, handles)
|
||||||
|
|
||||||
|
|
||||||
% --- Executes on button press in stepButton.
|
% --- Executes on button press in stepButton.
|
||||||
function stepButton_Callback(hObject, eventdata, handles)
|
function stepButton_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to stepButton (see GCBO)
|
% hObject handle to stepButton (see GCBO)
|
||||||
|
@ -102,32 +142,25 @@ function stepButton_Callback(hObject, eventdata, handles)
|
||||||
showFramei(hObject, handles)
|
showFramei(hObject, handles)
|
||||||
VisualISAMStep
|
VisualISAMStep
|
||||||
if mod(frame_i,DRAW_INTERVAL)==0
|
if mod(frame_i,DRAW_INTERVAL)==0
|
||||||
|
showWaiting(handles, 'Computing marginals...');
|
||||||
VisualISAMPlot
|
VisualISAMPlot
|
||||||
|
showWaiting(handles, '');
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
% --- Executes on selection change in popupmenu1.
|
% --- Executes on selection change in dataset.
|
||||||
function popupmenu1_Callback(hObject, eventdata, handles)
|
function dataset_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to popupmenu1 (see GCBO)
|
% hObject handle to dataset (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array
|
% Hints: contents = cellstr(get(hObject,'String')) returns dataset contents as cell array
|
||||||
% contents{get(hObject,'Value')} returns selected item from popupmenu1
|
% contents{get(hObject,'Value')} returns selected item from dataset
|
||||||
global TRIANGLE
|
|
||||||
str = cellstr(get(hObject,'String'));
|
|
||||||
sel = get(hObject,'Value');
|
|
||||||
switch str{sel}
|
|
||||||
case 'triangle'
|
|
||||||
TRIANGLE = true
|
|
||||||
case 'cube'
|
|
||||||
TRIANGLE = false
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
% --- Executes during object creation, after setting all properties.
|
||||||
function popupmenu1_CreateFcn(hObject, eventdata, handles)
|
function dataset_CreateFcn(hObject, eventdata, handles)
|
||||||
% hObject handle to popupmenu1 (see GCBO)
|
% hObject handle to dataset (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles empty - handles not created until after all CreateFcns called
|
% handles empty - handles not created until after all CreateFcns called
|
||||||
|
|
||||||
|
@ -143,16 +176,17 @@ function runButton_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to runButton (see GCBO)
|
% hObject handle to runButton (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
sprintf('Not yet implemented')
|
VisualISAMGlobalVars
|
||||||
|
while (frame_i<NCAMERAS)
|
||||||
|
frame_i = frame_i+1;
|
||||||
% --- Executes on button press in stopButton.
|
showFramei(hObject, handles)
|
||||||
function stopButton_Callback(hObject, eventdata, handles)
|
VisualISAMStep
|
||||||
% hObject handle to stopButton (see GCBO)
|
if mod(frame_i,DRAW_INTERVAL)==0
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
showWaiting(handles, 'Computing marginals...');
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
VisualISAMPlot
|
||||||
sprintf('Not yet implemented')
|
showWaiting(handles, '');
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
% --- Executes on button press in plotButton.
|
% --- Executes on button press in plotButton.
|
||||||
function plotButton_Callback(hObject, eventdata, handles)
|
function plotButton_Callback(hObject, eventdata, handles)
|
||||||
|
@ -162,16 +196,6 @@ function plotButton_Callback(hObject, eventdata, handles)
|
||||||
VisualISAMPlot;
|
VisualISAMPlot;
|
||||||
|
|
||||||
|
|
||||||
function drawInterval_Callback(hObject, eventdata, handles)
|
|
||||||
% hObject handle to drawInterval (see GCBO)
|
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
|
||||||
|
|
||||||
% Hints: get(hObject,'String') returns contents of drawInterval as text
|
|
||||||
% str2double(get(hObject,'String')) returns contents of drawInterval as a double
|
|
||||||
VisualISAMGlobalVars
|
|
||||||
DRAW_INTERVAL = str2num(get(hObject,'String')) ;
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
% --- Executes during object creation, after setting all properties.
|
||||||
function drawInterval_CreateFcn(hObject, eventdata, handles)
|
function drawInterval_CreateFcn(hObject, eventdata, handles)
|
||||||
% hObject handle to drawInterval (see GCBO)
|
% hObject handle to drawInterval (see GCBO)
|
||||||
|
@ -184,16 +208,6 @@ if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgr
|
||||||
set(hObject,'BackgroundColor','white');
|
set(hObject,'BackgroundColor','white');
|
||||||
end
|
end
|
||||||
|
|
||||||
function numCamEdit_Callback(hObject, eventdata, handles)
|
|
||||||
% hObject handle to numCamEdit (see GCBO)
|
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
|
||||||
|
|
||||||
% Hints: get(hObject,'String') returns contents of numCamEdit as text
|
|
||||||
% str2double(get(hObject,'String')) returns contents of numCamEdit as a double
|
|
||||||
VisualISAMGlobalVars
|
|
||||||
NCAMERAS = str2num(get(hObject,'String')) ;
|
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
% --- Executes during object creation, after setting all properties.
|
||||||
function numCamEdit_CreateFcn(hObject, eventdata, handles)
|
function numCamEdit_CreateFcn(hObject, eventdata, handles)
|
||||||
|
@ -208,19 +222,35 @@ if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
% --- Executes during object creation, after setting all properties.
|
||||||
function edit5_Callback(hObject, eventdata, handles)
|
function reorderIntervalText_CreateFcn(hObject, eventdata, handles)
|
||||||
% hObject handle to edit5 (see GCBO)
|
% hObject handle to reorderIntervalText (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles empty - handles not created until after all CreateFcns called
|
||||||
|
|
||||||
% Hints: get(hObject,'String') returns contents of edit5 as text
|
% Hint: edit controls usually have a white background on Windows.
|
||||||
% str2double(get(hObject,'String')) returns contents of edit5 as a double
|
% See ISPC and COMPUTER.
|
||||||
|
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
|
||||||
|
set(hObject,'BackgroundColor','white');
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
% --- Executes during object creation, after setting all properties.
|
||||||
function edit5_CreateFcn(hObject, eventdata, handles)
|
function cameraIntervalEdit_CreateFcn(hObject, eventdata, handles)
|
||||||
% hObject handle to edit5 (see GCBO)
|
% hObject handle to cameraIntervalEdit (see GCBO)
|
||||||
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
|
% handles empty - handles not created until after all CreateFcns called
|
||||||
|
|
||||||
|
% Hint: edit controls usually have a white background on Windows.
|
||||||
|
% See ISPC and COMPUTER.
|
||||||
|
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
|
||||||
|
set(hObject,'BackgroundColor','white');
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
% --- Executes during object creation, after setting all properties.
|
||||||
|
function reorderIntervalEdit_CreateFcn(hObject, eventdata, handles)
|
||||||
|
% hObject handle to reorderIntervalEdit (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles empty - handles not created until after all CreateFcns called
|
% handles empty - handles not created until after all CreateFcns called
|
||||||
|
|
||||||
|
@ -232,26 +262,22 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function edit6_Callback(hObject, eventdata, handles)
|
function numCamEdit_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to edit6 (see GCBO)
|
% hObject handle to numCamEdit (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hints: get(hObject,'String') returns contents of edit6 as text
|
% Hints: get(hObject,'String') returns contents of numCamEdit as text
|
||||||
% str2double(get(hObject,'String')) returns contents of edit6 as a double
|
% str2double(get(hObject,'String')) returns contents of numCamEdit as a double
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
% --- Executes on button press in showImagesCB.
|
||||||
function edit6_CreateFcn(hObject, eventdata, handles)
|
function showImagesCB_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to edit6 (see GCBO)
|
% hObject handle to showImagesCB (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles empty - handles not created until after all CreateFcns called
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hint: edit controls usually have a white background on Windows.
|
% Hint: get(hObject,'Value') returns toggle state of showImagesCB
|
||||||
% See ISPC and COMPUTER.
|
|
||||||
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
|
|
||||||
set(hObject,'BackgroundColor','white');
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
% --- Executes on button press in hardConstraintCB.
|
% --- Executes on button press in hardConstraintCB.
|
||||||
|
@ -261,16 +287,15 @@ function hardConstraintCB_Callback(hObject, eventdata, handles)
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hint: get(hObject,'Value') returns toggle state of hardConstraintCB
|
% Hint: get(hObject,'Value') returns toggle state of hardConstraintCB
|
||||||
VisualISAMGlobalVars
|
|
||||||
HARD_CONSTRAINT = get(hObject, 'Value')
|
|
||||||
|
|
||||||
% --- Executes on button press in pointPriorCB.
|
|
||||||
function pointPriorCB_Callback(hObject, eventdata, handles)
|
% --- Executes on button press in pointPriorsCB.
|
||||||
% hObject handle to pointPriorCB (see GCBO)
|
function pointPriorsCB_Callback(hObject, eventdata, handles)
|
||||||
|
% hObject handle to pointPriorsCB (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hint: get(hObject,'Value') returns toggle state of pointPriorCB
|
% Hint: get(hObject,'Value') returns toggle state of pointPriorsCB
|
||||||
|
|
||||||
|
|
||||||
% --- Executes on button press in batchInitCB.
|
% --- Executes on button press in batchInitCB.
|
||||||
|
@ -292,26 +317,13 @@ function alwaysRelinearizeCB_Callback(hObject, eventdata, handles)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function edit11_Callback(hObject, eventdata, handles)
|
function drawInterval_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to edit11 (see GCBO)
|
% hObject handle to drawInterval (see GCBO)
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
% eventdata reserved - to be defined in a future version of MATLAB
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hints: get(hObject,'String') returns contents of edit11 as text
|
% Hints: get(hObject,'String') returns contents of drawInterval as text
|
||||||
% str2double(get(hObject,'String')) returns contents of edit11 as a double
|
% str2double(get(hObject,'String')) returns contents of drawInterval as a double
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
|
||||||
function edit11_CreateFcn(hObject, eventdata, handles)
|
|
||||||
% hObject handle to edit11 (see GCBO)
|
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
|
||||||
% handles empty - handles not created until after all CreateFcns called
|
|
||||||
|
|
||||||
% Hint: edit controls usually have a white background on Windows.
|
|
||||||
% See ISPC and COMPUTER.
|
|
||||||
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
|
|
||||||
set(hObject,'BackgroundColor','white');
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -324,19 +336,6 @@ function cameraIntervalEdit_Callback(hObject, eventdata, handles)
|
||||||
% str2double(get(hObject,'String')) returns contents of cameraIntervalEdit as a double
|
% str2double(get(hObject,'String')) returns contents of cameraIntervalEdit as a double
|
||||||
|
|
||||||
|
|
||||||
% --- Executes during object creation, after setting all properties.
|
|
||||||
function cameraIntervalEdit_CreateFcn(hObject, eventdata, handles)
|
|
||||||
% hObject handle to cameraIntervalEdit (see GCBO)
|
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
|
||||||
% handles empty - handles not created until after all CreateFcns called
|
|
||||||
|
|
||||||
% Hint: edit controls usually have a white background on Windows.
|
|
||||||
% See ISPC and COMPUTER.
|
|
||||||
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
|
|
||||||
set(hObject,'BackgroundColor','white');
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
% --- Executes on button press in saveGraphCB.
|
% --- Executes on button press in saveGraphCB.
|
||||||
function saveGraphCB_Callback(hObject, eventdata, handles)
|
function saveGraphCB_Callback(hObject, eventdata, handles)
|
||||||
% hObject handle to saveGraphCB (see GCBO)
|
% hObject handle to saveGraphCB (see GCBO)
|
||||||
|
@ -380,12 +379,3 @@ function saveGraphsCB_Callback(hObject, eventdata, handles)
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
% handles structure with handles and user data (see GUIDATA)
|
||||||
|
|
||||||
% Hint: get(hObject,'Value') returns toggle state of saveGraphsCB
|
% Hint: get(hObject,'Value') returns toggle state of saveGraphsCB
|
||||||
|
|
||||||
|
|
||||||
% --- Executes on button press in showImagesCB.
|
|
||||||
function showImagesCB_Callback(hObject, eventdata, handles)
|
|
||||||
% hObject handle to showImagesCB (see GCBO)
|
|
||||||
% eventdata reserved - to be defined in a future version of MATLAB
|
|
||||||
% handles structure with handles and user data (see GUIDATA)
|
|
||||||
|
|
||||||
% Hint: get(hObject,'Value') returns toggle state of showImagesCB
|
|
||||||
|
|
Loading…
Reference in New Issue