Changeset 797 for trunk


Ignore:
Timestamp:
Jul 10, 2014, 9:45:26 AM (7 years ago)
Author:
sommeria
Message:

read_rdvision corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_rdvision.m

    r796 r797  
    6565   % bin_file='Dalsa1_';
    6666    nb_frames=str2double(FileInfo.numberoffiles);
    67  %%%%%%BRICOLAGE
     67    %%%% reading the .sqb file
    6868    m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ...
    6969        'uint32' [1 1] 'garbage1';...
    7070        'double' [1 1] 'timestamp';...
    7171        'uint32' [1 1] 'file_idx';...
    72         'uint32' [1 1] 'garbage2' },'Repeat',nb_frames);
    73    
     72        'uint32' [1 1] 'garbage2' },'Repeat',nb_frames);   
    7473    data=m.Data;
    75     %%%%%%%BRICOLAGE
    76 %     ind=[60 63:152];
     74       %%%%%%%BRICOLAGE in case of unreadable .sqb file
     75%     ind=[60 63:152];%indices of bin files
     76%     lengthimage=w*h*bpp;% lengthof an image record on the binary file
    7777%     for ii=1:32*numel(ind)
    78 %         data(ii).offset=mod(ii-1,32)*4194304+2097152;
     78%         data(ii).offset=mod(ii-1,32)*2*lengthimage+lengthimage;%Dalsa_2
     79%         %data(ii).offset=mod(ii-1,32)*2*lengthimage;%Dalsa_1
    7980%         data(ii).file_idx=ind(ceil(ii/32));
    80 %         data(ii).timestamp=[0:0.2:32*numel(ind)-1];
     81%         data(ii).timestamp=0.2*(ii-1);
    8182%     end
     83    %%%%%%%
    8284    timestamps=[data.timestamp];
    8385    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.