Changeset 833 for trunk/src/series/civ_input.m
- Timestamp:
- Dec 6, 2014, 4:40:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r824 r833 66 66 SeriesData=get(hseries,'UserData');% info stored in the GUI series 67 67 68 %% set visibility options: 69 if strcmp(Param.Action.ActionName,'civ_series') 70 % set(handles.Program,'String','civ_series') 71 set(handles.num_MaxDiff,'Visible','on') 68 %% set visibility options depending on the calling function (Param.Action.ActionName): 69 if strcmp(Param.Action.ActionName,'civ_series')||strcmp(Param.Action.ActionName,'stereo_civ') 70 set(handles.num_MaxDiff,'Visible','on') 72 71 set(handles.num_MaxVel,'Visible','on') 73 72 set(handles.title_MaxVel,'Visible','on') … … 84 83 set(handles.CheckDecimal,'Value',0)% desactivate (work in progress) 85 84 end 85 switch Param.Action.ActionName 86 case 'stereo_civ' 87 set(handles.ListCompareMode,'Visible','off') 88 set(handles.PairIndices,'Visible','off') 89 case 'civ_series' 90 set(handles.ListCompareMode,'Visible','on') 91 set(handles.PairIndices,'Visible','on') 92 end 86 93 87 94 %% input file info … … 140 147 return 141 148 end 142 if isfield(SeriesData,'FileType') && numel(SeriesData.FileType)>=2 && strcmp(SeriesData.FileType{end-1},'image') && strcmp(SeriesData.FileType{end},'image')143 set(handles.ListCompareMode,'Value',3)% we compare two image series term to term ('shift')144 set(handles.PairIndices,'Visible','off')145 end149 % if isfield(SeriesData,'FileType') && numel(SeriesData.FileType)>=2 && strcmp(SeriesData.FileType{end-1},'image') && strcmp(SeriesData.FileType{end},'image') 150 % set(handles.ListCompareMode,'Value',3)% we compare two image series term to term ('shift') 151 % set(handles.PairIndices,'Visible','off') 152 % end 146 153 147 154 %% reinitialise menus … … 154 161 155 162 %% prepare the GUI with input parameters 156 set(handles.ListCompareMode,'Visible','on') 163 % 157 164 set(handles.ref_i,'String',num2str(Param.IndexRange.first_i)) 158 165 if isfield(Param.IndexRange,'first_j') … … 258 265 259 266 %% introduce the stored Civ parameters if available (from previous input or ImportConfig in series) 260 if isfield(Param,'ActionInput') 267 if isfield(Param,'ActionInput')&& strcmp(Param.ActionInput.Program,Param.Action.ActionName)% the program fits with the stored data 261 268 fill_GUI(Param.ActionInput,hObject);%fill the GUI with the parameters retrieved from the input Param 262 269 hcheckgrid=findobj(handles.civ_input,'Tag','CheckGrid'); … … 439 446 checkbox(6)=get(handles.CheckPatch2,'Value'); 440 447 % ind_selected=find(checkbox,1); 441 set(handles.PairIndices,'Visible','on')% make the frame PaiIndices visible, choice of the index pairs fo civ448 %set(handles.PairIndices,'Visible','on')% make the frame PaiIndices visible, choice of the index pairs fo civ 442 449 if opening==0 443 450 errormsg=find_netcpair_civ(handles,1); % select the available netcdf files … … 622 629 case 'displacement' 623 630 OriginIndex='on';%define a frame origin for displacement 624 case 'shift'625 if numel(ImageType)==1626 fileinput=uigetfile_uvmat('pick a second file series for synchronous shift',InputTable{check_nc+1});627 if ~isempty(fileinput)628 series( 'display_file_name',hhseries,fileinput,'append')629 end630 631 632 end631 % case 'shift' 632 % if numel(ImageType)==1 633 % fileinput=uigetfile_uvmat('pick a second file series for synchronous shift',InputTable{check_nc+1}); 634 % if ~isempty(fileinput) 635 % series( 'display_file_name',hhseries,fileinput,'append') 636 % end 637 % 638 % 639 % end 633 640 end 634 641 set(handles.num_OriginIndex,'Visible',OriginIndex)
Note: See TracChangeset
for help on using the changeset viewer.