Index: /trunk/src/series/extract_rdvision.m
===================================================================
--- /trunk/src/series/extract_rdvision.m	(revision 886)
+++ /trunk/src/series/extract_rdvision.m	(revision 887)
@@ -310,24 +310,26 @@
     
     %% reading the .sqb file
-%     m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ...
-%         'uint32' [1 1] 'garbage1';...
-%         'double' [1 1] 'timestamp';...
-%         'uint32' [1 1] 'file_idx';...
-%         'uint32' [1 1] 'garbage2' },'Repeat',SeqData.nb_frames);
-    %%%%%%%BRICOLAGE in case of unreadable .sqb file
-        ind=[111 114:211];%indices of bin files
-        w=1024;%w=width of images in pixels
-        h=1024;%h=height of images in pixels
-        bpp=2;% nbre of bytes per pixel
-        lengthimage=w*h*bpp;% lengthof an image record on the binary file
-        nbimages=32; %nbre of images of each camera in a bin file 
-        for ii=1:32*numel(ind)
-            data(ii).offset=mod(ii-1,32)*2*lengthimage+lengthimage;%Dalsa_2
-            %data(ii).offset=mod(ii-1,32)*2*lengthimage;%Dalsa_1
-            data(ii).file_idx=ind(ceil(ii/32));
-            data(ii).timestamp=0.2*(ii-1);
-        end
-        m.Data=data;
+    m = memmapfile(filename_sqb,'Format', { 'uint32' [1 1] 'offset'; ...
+        'uint32' [1 1] 'garbage1';...
+        'double' [1 1] 'timestamp';...
+        'uint32' [1 1] 'file_idx';...
+        'uint32' [1 1] 'garbage2' },'Repeat',SeqData.nb_frames);
+    
+    %%%%%%%BRICOLAGE in case of unreadable .sqb file: remplace lecture du fichier
+%         ind=[111 114:211];%indices of bin files
+%         w=1024;%w=width of images in pixels
+%         h=1024;%h=height of images in pixels
+%         bpp=2;% nbre of bytes per pixel
+%         lengthimage=w*h*bpp;% lengthof an image record on the binary file
+%         nbimages=32; %nbre of images of each camera in a bin file 
+%         for ii=1:32*numel(ind)
+%             data(ii).offset=mod(ii-1,32)*2*lengthimage+lengthimage;%Dalsa_2
+%             %data(ii).offset=mod(ii-1,32)*2*lengthimage;%Dalsa_1
+%             data(ii).file_idx=ind(ceil(ii/32));
+%             data(ii).timestamp=0.2*(ii-1);
+%         end
+%         m.Data=data;
     %%%%%%%
+    
     for ii=1: numel(m.Data)
         timestamp(ii)=m.Data(ii).timestamp;
