Ignore:
Timestamp:
Jul 23, 2012, 8:44:33 PM (9 years ago)
Author:
sommeria
Message:

various bug corrections, compatibilty with older PIV data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civxdata.m

    r472 r498  
    156156    Field.Y=Field.Y*Field.pixcmy;
    157157end
    158 if ~isequal(Field.dt,0)
    159     Field.U=Field.U*Field.dt;%translate in px displacement
    160     Field.V=Field.V*Field.dt;
     158if ~isequal(Field.Dt,0)
     159    Field.U=Field.U*Field.Dt;%translate in px displacement
     160    Field.V=Field.V*Field.Dt;
    161161    if isfield(Field,'DjUi')
    162        Field.DjUi(:,1,1)=Field.dt*Field.DjUi(:,1,1);
    163        Field.DjUi(:,2,2)=Field.dt*Field.DjUi(:,2,2);
    164        Field.DjUi(:,1,2)=(Field.pixcmy/Field.pixcmx)*Field.dt*Field.DjUi(:,1,2);
    165        Field.DjUi(:,2,1)=(Field.pixcmx/Field.pixcmy)*Field.dt*Field.DjUi(:,2,1);
     162       Field.DjUi(:,1,1)=Field.Dt*Field.DjUi(:,1,1);
     163       Field.DjUi(:,2,2)=Field.Dt*Field.DjUi(:,2,2);
     164       Field.DjUi(:,1,2)=(Field.pixcmy/Field.pixcmx)*Field.Dt*Field.DjUi(:,1,2);
     165       Field.DjUi(:,2,1)=(Field.pixcmx/Field.pixcmy)*Field.Dt*Field.DjUi(:,2,1);
    166166    end
    167167end
Note: See TracChangeset for help on using the changeset viewer.