Changeset 887 for trunk/src


Ignore:
Timestamp:
Mar 28, 2015, 10:09:26 PM (9 years ago)
Author:
sommeria
Message:

comments on extract_rdvision suppressed

File:
1 edited

Legend:

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

    r886 r887  
    310310   
    311311    %% reading the .sqb file
    312 %     m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ...
    313 %         'uint32' [1 1] 'garbage1';...
    314 %         'double' [1 1] 'timestamp';...
    315 %         'uint32' [1 1] 'file_idx';...
    316 %         'uint32' [1 1] 'garbage2' },'Repeat',SeqData.nb_frames);
    317     %%%%%%%BRICOLAGE in case of unreadable .sqb file
    318         ind=[111 114:211];%indices of bin files
    319         w=1024;%w=width of images in pixels
    320         h=1024;%h=height of images in pixels
    321         bpp=2;% nbre of bytes per pixel
    322         lengthimage=w*h*bpp;% lengthof an image record on the binary file
    323         nbimages=32; %nbre of images of each camera in a bin file
    324         for ii=1:32*numel(ind)
    325             data(ii).offset=mod(ii-1,32)*2*lengthimage+lengthimage;%Dalsa_2
    326             %data(ii).offset=mod(ii-1,32)*2*lengthimage;%Dalsa_1
    327             data(ii).file_idx=ind(ceil(ii/32));
    328             data(ii).timestamp=0.2*(ii-1);
    329         end
    330         m.Data=data;
     312    m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ...
     313        'uint32' [1 1] 'garbage1';...
     314        'double' [1 1] 'timestamp';...
     315        'uint32' [1 1] 'file_idx';...
     316        'uint32' [1 1] 'garbage2' },'Repeat',SeqData.nb_frames);
     317   
     318    %%%%%%%BRICOLAGE in case of unreadable .sqb file: remplace lecture du fichier
     319%         ind=[111 114:211];%indices of bin files
     320%         w=1024;%w=width of images in pixels
     321%         h=1024;%h=height of images in pixels
     322%         bpp=2;% nbre of bytes per pixel
     323%         lengthimage=w*h*bpp;% lengthof an image record on the binary file
     324%         nbimages=32; %nbre of images of each camera in a bin file
     325%         for ii=1:32*numel(ind)
     326%             data(ii).offset=mod(ii-1,32)*2*lengthimage+lengthimage;%Dalsa_2
     327%             %data(ii).offset=mod(ii-1,32)*2*lengthimage;%Dalsa_1
     328%             data(ii).file_idx=ind(ceil(ii/32));
     329%             data(ii).timestamp=0.2*(ii-1);
     330%         end
     331%         m.Data=data;
    331332    %%%%%%%
     333   
    332334    for ii=1: numel(m.Data)
    333335        timestamp(ii)=m.Data(ii).timestamp;
Note: See TracChangeset for help on using the changeset viewer.