Changeset 1190 for trunk/src/series
- Timestamp:
- Dec 18, 2025, 6:47:16 PM (2 months ago)
- File:
-
- 1 edited
-
trunk/src/series/sub_background.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r1180 r1190 246 246 247 247 %% File relabeling documented by the xml file 248 CheckRelabel=isfield(Param ,'FileSeries');248 CheckRelabel=isfield(Param.IndexRange,'Relabel' )&& Param.IndexRange.Relabel;%=true for index relabeling (PCO); 249 249 250 250 %% Input file info 251 251 if CheckRelabel 252 [RootFileOut,frame_index]=index2filename(Param.FileSeries,Param.IndexRange.first_i,j_indices(1),NbField_j); 252 XmlFileName=find_imadoc(RootPath,SubDir); 253 if ~isempty(XmlFileName) 254 XmlData=imadoc2struct(XmlFileName);%read the time from XmlFileName 255 end 256 % RootFileOut=index2filename(XmlData.FileSeries,1,1,MaxIndex_j); 257 [RootFileOut,frame_index]=index2filename(XmlData.FileSeries,Param.IndexRange.first_i,j_indices(1),NbField_j); 253 258 FirstFileName=fullfile(RootPath,SubDir,RootFileOut); 254 259 else … … 315 320 %filename=filecell{1,ifile}; 316 321 if CheckRelabel 317 [filename,FrameIndex]=index2filename( Param.FileSeries,i_indices(ifile),j_indices(ifile),NbField_j);322 [filename,FrameIndex]=index2filename(XmlData.FileSeries,i_indices(ifile),j_indices(ifile),NbField_j); 318 323 filename=fullfile(RootPath,SubDir,filename); 319 324 else … … 340 345 %write result file 341 346 if ~isequal(Param.ActionInput.SaturationValue,0) 342 C=levels(Acor,Param.ActionInput.SaturationValue);347 he=levels(Acor,Param.ActionInput.SaturationValue); 343 348 imwrite(C,newname,'BitDepth',16); % save the new image 344 349 else … … 370 375 ifile=indselect(j_slice,ifield+iburst+step*halfnbaver); 371 376 if CheckRelabel 372 [filename,FrameIndex]=index2filename( Param.FileSeries,i_indices(ifile),j_indices(ifile),NbField_j);377 [filename,FrameIndex]=index2filename(XmlData.FileSeries,i_indices(ifile),j_indices(ifile),NbField_j); 373 378 filename=fullfile(RootPath,SubDir,filename); 374 379 else
Note: See TracChangeset
for help on using the changeset viewer.
