Changeset 1152 for trunk/src/series


Ignore:
Timestamp:
Jul 4, 2024, 4:23:43 PM (6 months ago)
Author:
sommeria
Message:

update_xml simlified, bug on civ_series corrected

Location:
trunk/src/series
Files:
6 edited

Legend:

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

    r1151 r1152  
    189189%% get timing from the ImaDoc file or input video
    190190if iview_A~=0
    191     XmlFileName=find_imadoc(RootPath_A,SubDir_A,RootFile_A,FileExt_A);
     191    XmlFileName=find_imadoc(RootPath_A,SubDir_A);
    192192    Time=[];
    193193    if ~isempty(XmlFileName)
  • trunk/src/series/civ_input.m

    r1148 r1152  
    23622362% --- Executes on selection change in field_ref2.
    23632363function field_ref2_Callback(hObject, eventdata, handles)
    2364 
    2365 
    2366 
  • trunk/src/series/civ_series.m

    r1148 r1152  
    256256%% get timing from the ImaDoc file or input video
    257257if iview_A~=0
    258     XmlFileName=find_imadoc(RootPath_A,SubDir_A,RootFile_A,FileExt_A);
     258    XmlFileName=find_imadoc(RootPath_A,SubDir_A);
    259259    Time=[];
    260260    if ~isempty(XmlFileName)
     
    488488        end
    489489        if strcmp(Param.ActionInput.ListCompareMode, 'PIV volume')
    490             Data.ListVarName=[Data.ListVarName 'Civ1_Z'];
    491             Data.Civ1_X=[];Data.Civ1_Y=[];Data.Civ1_Z=[];
    492             Data.Civ1_U=[];Data.Civ1_V=[];Data.Civ1_C=[];
    493             for ivol=1:NbSlice
    494                 % caluclate velocity data (y and v in indices, reverse to y component)
    495                 [xtable, ytable, utable, vtable, ctable, F, result_conv, errormsg] = civ (par_civ1);
    496                 if ~isempty(errormsg)
    497                     disp_uvmat('ERROR',errormsg,checkrun)
    498                     return
    499                 end
    500                 Data.Civ1_X=[Data.Civ1_X reshape(xtable,[],1)];
    501                 Data.Civ1_Y=[Data.Civ1_Y reshape(Param.Civ1.ImageHeight-ytable+1,[],1)];
    502                 Data.Civ1_Z=[Data.Civ1_Z ivol*ones(numel(xtable),1)];% z=image index in image coordinates
    503                 Data.Civ1_U=[Data.Civ1_U reshape(utable,[],1)];
    504                 Data.Civ1_V=[Data.Civ1_V reshape(-vtable,[],1)];
    505                 Data.Civ1_C=[Data.Civ1_C reshape(ctable,[],1)];
    506                 Data.Civ1_FF=[Data.Civ1_FF reshape(F,[],1)];
    507             end
     490            % Data.ListVarName=[Data.ListVarName 'Civ1_Z'];
     491            % Data.Civ1_X=[];Data.Civ1_Y=[];Data.Civ1_Z=[];
     492            % Data.Civ1_U=[];Data.Civ1_V=[];Data.Civ1_C=[];
     493            % for ivol=1:NbSlice
     494            %     % caluclate velocity data (y and v in indices, reverse to y component)
     495            %     [xtable, ytable, utable, vtable, ctable, F, result_conv, errormsg] = civ (par_civ1);
     496            %     if ~isempty(errormsg)
     497            %         disp_uvmat('ERROR',errormsg,checkrun)
     498            %         return
     499            %     end
     500            %     Data.Civ1_X=[Data.Civ1_X reshape(xtable,[],1)];
     501            %     Data.Civ1_Y=[Data.Civ1_Y reshape(Param.Civ1.ImageHeight-ytable+1,[],1)];
     502            %     Data.Civ1_Z=[Data.Civ1_Z ivol*ones(numel(xtable),1)];% z=image index in image coordinates
     503            %     Data.Civ1_U=[Data.Civ1_U reshape(utable,[],1)];
     504            %     Data.Civ1_V=[Data.Civ1_V reshape(-vtable,[],1)];
     505            %     Data.Civ1_C=[Data.Civ1_C reshape(ctable,[],1)];
     506            %     Data.Civ1_FF=[Data.Civ1_FF reshape(F,[],1)];
     507            % end
    508508        else %usual PIV
    509509            % caluclate velocity data (y and v in indices, reverse to y component)
  • trunk/src/series/merge_proj.m

    r1147 r1152  
    338338            end
    339339            [MaskData,~,errormsg] = read_field(maskname,'image');
     340            if ~isempty(NbSlice_calib)
     341            MaskData.ZIndex=mod(i1_series{iview}(index)-1,NbSlice_calib{iview})+1;%Zindex for phys transform
     342        end
    340343            if ~isempty(transform_fct) && nargin(transform_fct)>=2
    341344                MaskData=transform_fct(MaskData,XmlData{iview});
  • trunk/src/series/stereo_civ.m

    r1126 r1152  
    9595time=[];
    9696for iview=1:size(Param.InputTable,1)
    97     XmlFileName=find_imadoc(Param.InputTable{iview,1},Param.InputTable{iview,2},Param.InputTable{iview,3},Param.InputTable{iview,5});
     97    XmlFileName=find_imadoc(Param.InputTable{iview,1},Param.InputTable{iview,2});
    9898    if isempty(XmlFileName)
    9999        disp_uvmat('ERROR', [XmlFileName ' not found'],checkrun)
Note: See TracChangeset for help on using the changeset viewer.