Changeset 784 for trunk/src/read_field.m


Ignore:
Timestamp:
Jun 7, 2014, 6:17:53 PM (10 years ago)
Author:
sommeria
Message:

adpat uvmat to reading data from rdvision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r782 r784  
    1414%INPUT
    1515% FileName: name of the input file
    16 % FileType: type of file, as determined by the function get_file_type.m
     16% FileType: type of file, as determined by the function get_file_info.m
    1717% ParamIn: movie object or Matlab structure of input parameters
    1818%     .FieldName: name (char string) of the input field (for Civx data)
     
    213213        A=permute(A,[3 2 1]);
    214214    case 'multimage'
    215         warning 'off'
     215      %  warning 'off'
    216216        A=imread(FileName,num);
    217217    case 'image'
    218218        A=imread(FileName);
    219 end
    220 if ~isempty(errormsg)
    221     errormsg=[FileType ' input: ' errormsg];
    222     return
     219    case 'rdvision'
     220        [A,timestamps]=binread_rdv(FileName,num);
     221    otherwise
     222        errormsg=[ FileType ': invalid input file type for uvmat'];
    223223end
    224224
    225225%% case of image
    226226if ~isempty(A)
     227    if strcmp(FileType,'rdvision')
     228        Field.Time=timestamps;
     229    end
    227230    if isstruct(ParamOut)
    228231        ParamOut.FieldName='image';
     
    268271    Field.A=A;
    269272    Field.CoordUnit='pixel'; %used for mouse_motion
    270 end
    271 
    272 
    273 
     273       
     274end
     275
     276
     277
Note: See TracChangeset for help on using the changeset viewer.