vec2mat(FILENAME) converts the DaVis images and vector fields matching
FILENAME into Mat-files, which may be re-used under non-Windows
systems. The output filenames are given by the input filenames, except
that the original suffix is replaced 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, using
V = loadvec('B00001.mat'))
or directly using the MATLAB's LOAD function:
LOAD('B00001.mat')
(this syntax creates the variable V in the current workspace).
See loadvec for the definition of the structure V.
vec2mat(FILENAME, DEST) converts the files to destination folder DEST.
By default, the current directory is used as destination.
vec2mat(FILENAME, DEST, 'verbose') also displays the work in progres.
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,
or under Windows 64-bits edition, which can not directly handle DaVis
files (but the conversion itself must be carried out on a Windows
32-bits edition platform, since it is based on loadvec and the readimx
DLL by LaVision).
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').
vec2mat('B[1:100].vc7', 'Z:/MyResults/', 'verbose')
See Also
loadvec, LOAD.
Published output in the Help browser
showdemo vec2mat