|
BTK Matlab Wrapper
0.3dev.0
Matlab bindings for the Biomechanical ToolKit library (BTK)
|
Write acquisition's data into file (C3D, TRC, ...).
btkWriteAcquisition(h, filename, option, value, ...) | h | Handle pointing to a C++ btk::Acquisition object. |
| filename | String with the path of the acquisition to export. |
| option | String (see the detailed description for the list of the available options). |
| value | Associated value with the given option. |
| ... | Other couple of option/value. |
btkWriteAcquisition(h, filename) exports acquisition's data represented as the handle g into the file filename. The choice of the file format is based on the file extension in filename (for example, '.trc' or '.c3d') btkWriteAcquisition(h, filename, option, value, ...) gives somes extra-options for some file format. ByteOrder option can receive 3 values:IEEE_LittleEndian: write integer and float in x86 format (PC).IEEE_BigEndian: write integer and float in PPC/MIPS format (SGI).VAX_LittleEndian: write integer and float in VAX format (DEC). The StorageFormat option can receive 2 values:Integer: Acquisition data are scaled and stored as 16 bits integer.Float: Acquisition data are stored as floating values. The REGENERATEINTERNALS is an advanced option which can receive 2 values.DataBased: Internal file format configuration (if any) is regenerated based on the acquisition data (i.e. points and analog channels plus events). This option is the default one.MetadataBased: Internal file format configuration (if any) is regenerated based on the metadata. WARNING: Use this value carefully as it could be easy to corrupt file format internals with it.btkWriteAcquisition(acq, 'filename.c3d', 'StorageFormat', 'Float');btkWriteAcquisition(acq, 'filename.c3d', 'ByteOrder', 'VAX_LittleEndian'); btkWriteAcquisition(acq, 'filename.c3d', 'StorageFormat', 'Integer', 'ByteOrder', 'IEEE_LittleEndian');
1.8.5