From 47d51ea4ce15c26cd1cd81a5c0a2748235f309a5 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 18 Sep 2012 14:16:49 -0400 Subject: one more fix for image data folder --- gui_win.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gui_win.m b/gui_win.m index 25f3224..086be98 100644 --- a/gui_win.m +++ b/gui_win.m @@ -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); -- cgit v1.2.3