MyStruct = getVC7data(davis_fi​le_number)

Facilitates importing data from DaVis to Matlab, feedback appreciated.
63 Downloads
Updated 11 Nov 2016

View License

% NB: GETVC7DATA only works if the folder 'readimxstuff' is in the matlab search path.
%
% GETVC7DATA Fetches all possible fields in a particular davis file DAVIS_FILE_NUMBER located at
% PATHVC7. If PATHVC7 is not specified, then .vc7 files are assumed to be
% in the current working directory.
% Outputs are in the structure format with slightly shorter names:
% FIELD is the structure format using these e.g. (UX,POSX,gridspacing...)
% FIELDdavis is a structure containing the original DaVis field names,
% but with colons ':' and white space ' ' replaced by '__'
% and '_' respectively.
%
% e.g.
% [FIELD,FIELDdavis]=getVC7data(2,'C:\Users\Matt\Downloads');
%
% Note: New field names (e.g. that might result from a new version of DaVis)
% are currently added with the prefix 'UNEXPECTED_FIELD_' followed by the default
% DaVis field name.
% e.g. If a DaVis field existed called: 'TS:Height of clouds'
% Then you will find it under: FIELD.UNEXPECTED_FIELD__TS__Height_of_clouds
% or in the DaVis structure: FIELDdavis.TS__Height_of_clouds

Cite As

Matt Molteno (2024). MyStruct = getVC7data(davis_file_number) (https://www.mathworks.com/matlabcentral/fileexchange/60184-mystruct-getvc7data-davis_file_number), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Big Data Processing in Help Center and MATLAB Answers
Acknowledgements

Inspired by: PIV image tool, PIVMat 4.20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0