diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-18 14:16:49 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-18 14:16:49 -0400 |
commit | 47d51ea4ce15c26cd1cd81a5c0a2748235f309a5 (patch) | |
tree | 678ec88662e2c200396b04a1af218fe49899cfe7 | |
parent | f7bb77247303d550a1e161c78edcf68de4a15635 (diff) | |
download | beam_profiler-47d51ea4ce15c26cd1cd81a5c0a2748235f309a5.tar.gz beam_profiler-47d51ea4ce15c26cd1cd81a5c0a2748235f309a5.zip |
one more fix for image data folder
-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); |