Ignore:
Timestamp:
Dec 11, 2025, 8:45:31 AM (3 days ago)
Author:
sommeria
Message:

file relabeling implemented for civ_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_series.m

    r1187 r1188  
    256256
    257257%% File relabeling documented by the xml file (e.g. PCO)
    258 CheckRelabel=isfield(Param,'FileSeries' );%=true for index relabeling (PCO)
    259 
    260 % %% introduce input image transform
    261 % transform_fct=[];%default, no transform
    262 % if isfield(Param,'FieldTransform')&&~isempty(Param.FieldTransform.TransformName)
    263 %         currentdir=pwd;
    264 %     cd(Param.FieldTransform.TransformPath)
    265 %     transform_fct=str2func(Param.FieldTransform.TransformName);
    266 %     cd (currentdir)
    267 % end
     258CheckRelabel=isfield(Param.IndexRange,'Relabel' )&& Param.IndexRange.Relabel;%=true for index relabeling (PCO)
    268259
    269260%%%%% MAIN LOOP %%%%%%
     
    291282    OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
    292283    if CheckRelabel
    293          RootFileOut=index2filename(Param.FileSeries,1,1,MaxIndex_j);
     284         RootFileOut=index2filename(XmlData.FileSeries,1,1,MaxIndex_j);
    294285    else
    295286        RootFileOut=RootFile_A;
     
    343334                FrameIndex_A=1;
    344335            elseif CheckRelabel
    345             [RootFile,FrameIndex_A]=index2filename(Param.FileSeries,i1_series_Civ1(ifield),j1_series_Civ1(ifield),MaxIndex_j);
    346             ImageName_A=fullfile(RootPath_A,SubDir_A,RootFile);
     336                [RootFile,FrameIndex_A]=index2filename(XmlData.FileSeries,i1_series_Civ1(ifield),j1_series_Civ1(ifield),MaxIndex_j);
     337                ImageName_A=fullfile(RootPath_A,SubDir_A,RootFile);
    347338            else
    348339                ImageName_A=fullfile_uvmat(RootPath_A,SubDir_A,RootFile_A,FileExt_A,NomType_A,i1_series_Civ1(ifield),[],j1_series_Civ1(ifield));
     
    382373            end
    383374            if CheckRelabel
    384                 [RootFile,FrameIndex_B]=index2filename(Param.FileSeries,i2_series_Civ1(ifield),j2_series_Civ1(ifield),MaxIndex_j);
     375                [RootFile,FrameIndex_B]=index2filename(XmlData.FileSeries,i2_series_Civ1(ifield),j2_series_Civ1(ifield),MaxIndex_j);
    385376                ImageName_B=fullfile(RootPath_B,SubDir_B,RootFile);
    386377            else
     
    632623            ImageName_A_Civ2=Param.ActionInput.RefFile;
    633624        elseif CheckRelabel
    634             [RootFile,FrameIndex_A_2]=index2filename(Param.FileSeries,i1_series_Civ2(ifield),j1_series_Civ2(ifield),MaxIndex_j);
     625            [RootFile,FrameIndex_A_2]=index2filename(XmlData.FileSeries,i1_series_Civ2(ifield),j1_series_Civ2(ifield),MaxIndex_j);
    635626            ImageName_A_Civ2=fullfile(RootPath_A,SubDir_A,RootFile);
    636627        else
     
    644635        end
    645636        if CheckRelabel
    646             [RootFile,FrameIndex_B_2]=index2filename(Param.FileSeries,i2_civ2,j2_civ2,MaxIndex_j);
     637            [RootFile,FrameIndex_B_2]=index2filename(XmlData.FileSeries,i2_civ2,j2_civ2,MaxIndex_j);
    647638            ImageName_B_Civ2=fullfile(RootPath_B,SubDir_B,RootFile);
    648639        else
Note: See TracChangeset for help on using the changeset viewer.