Changeset 937 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 30, 2016, 11:04:43 PM (5 years ago)
Author:
sommeria
Message:

various upgrades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r936 r937  
    12131213
    12141214%% read the content of the GUI set_slice
    1215 SliceData=read_GUI(get(hObject,'parent'));
     1215hset_slice=get(hObject, 'parent');
     1216hZ=findobj(hset_slice,'Tag','num_Z_1');
     1217Z_plane=str2num(get(hZ,'String'));% set of Z positions explicitly entered as a Matlab vector
     1218SliceData=read_GUI(hset_slice);
    12161219GeometryCalib.NbSlice=SliceData.NbSlice;
    12171220GeometryCalib.CheckVolumeScan=SliceData.CheckVolumeScan;
    1218 Z_plane=linspace(SliceData.Z(1),SliceData.Z(2),SliceData.NbSlice);
     1221if numel(Z_plane)<=2
     1222    Z_plane=linspace(SliceData.Z(1),SliceData.Z(2),SliceData.NbSlice);
     1223else
     1224    set(hZ,'String',num2str(Z_plane))% restitute the display qfter reqding by read_GUI
     1225end
    12191226GeometryCalib.SliceCoord=Z_plane'*[0 0 1];
    12201227GeometryCalib.SliceAngle=zeros(GeometryCalib.NbSlice,3);
Note: See TracChangeset for help on using the changeset viewer.