Changeset 614 for trunk/src/series
- Timestamp:
- Apr 19, 2013, 8:26:37 AM (12 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r610 r614 156 156 else 157 157 [FileType_B,FileInfo,VideoObject_B]=get_file_type(filecell{2,1}); 158 if isempty( strcmp(FileType_B,{'multimage','mmreader','video'}))158 if isempty(find(strcmp(FileType_B,{'multimage','mmreader','video'}))) 159 159 displ(['ERROR: the file line ' num2str(iview_B) ' must be an image']) 160 160 end … … 200 200 end 201 201 end 202 if ~isempty( strcmp(FileType_A,{'mmreader','video'}))% case of video input202 if ~isempty(find(strcmp(FileType_A,{'mmreader','video'})))% case of video input 203 203 time=zeros(2,FileInfo_A.NumberOfFrames+1); 204 204 time(2,:)=(0:1/FileInfo_A.FrameRate:(FileInfo_A.NumberOfFrames)/FileInfo_A.FrameRate); … … 257 257 j2=j2_series_Civ1(ifield); 258 258 end 259 Data.Civ1_Time=(time( j2+1,i2+1)+time(j1+1,i1+1))/2;260 Data.Civ1_Dt=time( j2+1,i2+1)-time(j1+1,i1+1)259 Data.Civ1_Time=(time(i2+1,j2+1)+time(i1+1,j1+1))/2; 260 Data.Civ1_Dt=time(i2+1,j2+1)-time(i1+1,j1+1); 261 261 for ilist=1:length(list_param) 262 262 Data.(Civ1_param{4+ilist})=Param.ActionInput.Civ1.(list_param{ilist}); -
trunk/src/series/merge_proj.m
r606 r614 200 200 [Data{iview},tild,errormsg] = read_field(filecell{iview,index},FileType{iview},Param.InputFields,frame_index{iview}(index)); 201 201 if ~isempty(errormsg) 202 errormsg=['merge_proj/read_field/' errormsg]; 203 display(errormsg) 204 break 202 disp(['ERROR in merge_proj/read_field/' errormsg]) 203 return 205 204 end 206 205 timeread(iview)=0; … … 239 238 240 239 %% calculate tps coeff if needed 241 check_proj_tps= ~isempty(Param.ProjObject)&& strcmp(Param.ProjObject.ProjMode,'filter')&&~isfield(Data{iview},'Coord_tps');240 check_proj_tps= isfield(Param,'ProjObject')&&~isempty(Param.ProjObject)&& strcmp(Param.ProjObject.ProjMode,'interp_tps')&&~isfield(Data{iview},'Coord_tps'); 242 241 Data{iview}=tps_coeff_field(Data{iview},check_proj_tps); 243 242 … … 246 245 [Data{iview},errormsg]=proj_field(Data{iview},Param.ProjObject); 247 246 if ~isempty(errormsg) 248 disp l_uvmat('ERROR',['error in merge_proge/proj_field: ' errormsg],checkrun)247 disp(['ERROR in merge_proge/proj_field: ' errormsg]) 249 248 return 250 249 end … … 256 255 MergeData=merge_field(Data); 257 256 if isfield(MergeData,'Txt') 258 disp l_uvmat('ERROR',MergeData.Txt,checkrun)257 disp(MergeData.Txt); 259 258 return 260 259 end
Note: See TracChangeset
for help on using the changeset viewer.