Changeset 1010 for trunk/src/series/civ_input.m
- Timestamp:
- Sep 22, 2017, 12:33:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1007 r1010 1516 1516 hchildren=get(hparent,'children'); 1517 1517 handle_txtbox=findobj(hchildren,'tag','Mask');% look for the mask name box in the same panel 1518 1518 handle_NbSlice=findobj(hchildren,'tag','num_NbSlice');% look for the mask name box in the same panel 1519 1519 testmask=0; 1520 1520 if value … … 1526 1526 ind_A=2; 1527 1527 end 1528 [nbslice, flag_mask]=get_mask(InputTable{ind_A,1},handles);% look for a mask with appropriate name1529 if isequal(flag_mask,1)1530 filemask=[num2str(nbslice) 'mask'];1531 testmask=1;1532 else % browse for a mask1528 % [nbslice, flag_mask]=get_mask(InputTable{ind_A,1},handles);% look for a mask with appropriate name 1529 % if isequal(flag_mask,1) 1530 % filemask=[num2str(nbslice) 'mask']; 1531 % testmask=1; 1532 % else % browse for a mask 1533 1533 filemask= uigetfile_uvmat('pick a mask image file:',InputTable{ind_A,1},'image'); 1534 [FilePath,FileName,Ext]=fileparts(filemask); 1535 [RootPath,SubDir,RootFile,i1_series,i2,j1,j2,NomType]=find_file_series(FilePath,[FileName,Ext]); 1536 if strcmp(NomType,'_1') 1537 NbSlice=i1_series(1,2,end); 1538 set(handle_NbSlice,'String',num2str(NbSlice)) 1539 end 1534 1540 set(hObject,'UserData',filemask);%store for future use 1535 1541 if ~isempty(filemask) 1536 1542 testmask=1; 1537 end1538 end1543 end 1544 % end 1539 1545 end 1540 1546 if testmask … … 1542 1548 set(handles.Mask,'String',filemask) 1543 1549 set(handles.CheckMask,'Value',1) 1550 if strcmp(NomType,'_1') 1551 set(handles.num_NbSlice,'Visible','on') 1552 end 1544 1553 else 1545 1554 set(hObject,'Value',0); 1546 1555 set(handle_txtbox,'Visible','off') 1556 set(handles.num_NbSlice,'Visible','off') 1547 1557 end 1548 1558 set(handles.ConfigSource,'String','NEW') … … 2375 2385 drawnow 2376 2386 end 2387 2388 2389 2390 function num_NbSlice_Callback(hObject, eventdata, handles) 2391 % hObject handle to num_NbSlice (see GCBO) 2392 % eventdata reserved - to be defined in a future version of MATLAB 2393 % handles structure with handles and user data (see GUIDATA) 2394 2395 % Hints: get(hObject,'String') returns contents of num_NbSlice as text 2396 % str2double(get(hObject,'String')) returns contents of num_NbSlice as a double 2397 2398 2399 % --- Executes during object creation, after setting all properties. 2400 function num_NbSlice_CreateFcn(hObject, eventdata, handles) 2401 % hObject handle to num_NbSlice (see GCBO) 2402 % eventdata reserved - to be defined in a future version of MATLAB 2403 % handles empty - handles not created until after all CreateFcns called 2404 2405 % Hint: edit controls usually have a white background on Windows. 2406 % See ISPC and COMPUTER. 2407 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 2408 set(hObject,'BackgroundColor','white'); 2409 end
Note: See TracChangeset
for help on using the changeset viewer.