diff options
Diffstat (limited to 'gui_win.m')
-rw-r--r-- | gui_win.m | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -283,7 +283,7 @@ if get(handles.button2loadimage,'Value') drawnow; if ~isstr(pathname) % undefined variables are 0 - pathname = 'Z:\beam_profier images'; + pathname = 'Z:\beam_profiler images'; end; [filename, pathname, filterindex] = uigetfile( ... { '*.png','PNG-files (*.png)';},'DefaultName',pathname); @@ -516,9 +516,7 @@ function button2save_Callback(hObject, eventdata, handles) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global image_display; -%fname_to_save = horzcat(pwd,filesep,'saved_images',filesep,datestr(now, 'yyyy_mm_dd_HHMMSS'),'.png'); fname_to_save = horzcat('Z:\beam_profiler images',filesep,datestr(now, 'yyyy_mm_dd_HHMMSS'),'.png'); - set(handles.picsavepath,'String',horzcat('Image saved to: ',fname_to_save)); image_to_save=uint16(image_display); imwrite(image_to_save,fname_to_save,'png','bitdepth',16); |