vec2mat(FILENAME) converts the DaVis images and vector fields matching
FILENAME into Mat-files, with the same filename but replacing the
original suffix by '.mat'. All file formats accepted by loadvec are
accepted (VEC/VC7/IMX/IM7/IMG/TXT/SET). Wildcards (*) and
brackets ([]) may be used (see expandstr). The resulting MAT-Files can
be reloaded using loadvec (e.g., V=loadvec('B00001.mat')), or directly
using the MATLAB's LOAD function: LOAD('B00001.mat') creates the
variable V in the workspace. See loadvec for the definition of the
structure V.
vec2mat, without input argument, converts all the DaVis files of the
current directory into MAT files.
Reloading MAT-Files converted by vec2mat instead of loading the
original VEC files saves time (up to a factor 10). It may also be
useful to further process the files on platforms other than Windows,
which can not directly handle DaVis files (but the conversion itself
must be carried out on a Windows platform, since it uses loadvec and
the readimx DLL).
Example
vec2mat('dir*/*.vec') converts all the vec files in the directories
matching 'dir*' into MAT-files. These files may be further loaded
using v=loadvec('dir*/*.mat').
See Also
loadvec, loadset, LOAD.