- Timestamp:
- Jul 10, 2014, 9:45:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_rdvision.m
r796 r797 65 65 % bin_file='Dalsa1_'; 66 66 nb_frames=str2double(FileInfo.numberoffiles); 67 %%%%%%BRICOLAGE67 %%%% reading the .sqb file 68 68 m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ... 69 69 'uint32' [1 1] 'garbage1';... 70 70 'double' [1 1] 'timestamp';... 71 71 'uint32' [1 1] 'file_idx';... 72 'uint32' [1 1] 'garbage2' },'Repeat',nb_frames); 73 72 'uint32' [1 1] 'garbage2' },'Repeat',nb_frames); 74 73 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 77 77 % 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 79 80 % 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); 81 82 % end 83 %%%%%%% 82 84 timestamps=[data.timestamp]; 83 85 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset
for help on using the changeset viewer.