Changeset 794 for trunk


Ignore:
Timestamp:
Jul 7, 2014, 1:50:46 PM (7 years ago)
Author:
sommeria
Message:

read_rdvision corrected

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_lvm.m

    r789 r794  
    2121Dot_pos=regexp(TimeString,'\.');
    2222TimeString=TimeString(1:Dot_pos+2); % round to 1/100 s
     23r1.DateDat=regexprep(r1.DateDat,'/','-');%replace '/' by '-' (to get standard date representation recognized by Matlab)
    2324Data.DateTime=[r1.DateDat ' ' TimeString];%insert date to the time string (separated by a blank)
    2425
  • trunk/src/read_rdvision.m

    r790 r794  
    8484    for i=1:length(frame_idx)
    8585        ii=frame_idx(i);
    86         binfile=fullfile(RootPath,FileInfo.binrepertoire,sprintf('%s%.5d.bin',bin_file,data(ii).file_idx));
     86        if ~isempty(FileInfo.binrepertoire)
     87            binrepertoire=FileInfo.binrepertoire;
     88        else %used when binrepertoire empty, strange feature of rdvision
     89            binrepertoire=regexprep(FileInfo.bindirectory,'\\$','');%tranform Windows notation to Linux
     90            binrepertoire=regexprep(binrepertoire,'\','/');
     91            [tild,binrepertoire,DirExt]=fileparts(binrepertoire);
     92            binrepertoire=[binrepertoire DirExt];
     93        end
     94        binfile=fullfile(RootPath,binrepertoire,sprintf('%s%.5d.bin',bin_file,data(ii).file_idx));
    8795        fid=fopen(binfile,'rb');
    8896        fseek(fid,data(ii).offset,-1);
Note: See TracChangeset for help on using the changeset viewer.