diff --git a/openpivgui.m b/openpivgui.m index 5acd879..5680e8b 100644 --- a/openpivgui.m +++ b/openpivgui.m @@ -837,7 +837,7 @@ function prev_image_Callback(hObject, eventdata, handles) filenum = max(1,filenum - 1); set(handles.edit_num,'String',int2str(filenum)); % imshow(fullfile(handles.path,handles.files{1})); -imshow(openpiv_imread(handles,filenum)); +imshow(openpiv_imread(fullfile(handles.path,handles.files{filenum}))); guidata(hObject, handles); @@ -852,7 +852,7 @@ function next_image_Callback(hObject, eventdata, handles) filenum = str2num(get(handles.edit_num,'String')); filenum = min(filenum + 1,length(handles.files)); set(handles.edit_num,'String',int2str(filenum)); -imshow(openpiv_imread(handles,filenum)); +imshow(openpiv_imread(fullfile(handles.path,handles.files{filenum}))); guidata(hObject, handles);