BTK Matlab Wrapper
0.3dev.0
Matlab bindings for the Biomechanical ToolKit library (BTK)
|
Append a new event into the given acquisition and (optionally) return an updated list of events.
[events, eventsInfo] = btkAppendEvent(h, label, time, context)
[events, eventsInfo] = btkAppendEvent(h, label, time, context, subject)
[events, eventsInfo] = btkAppendEvent(h, label, time, context, subject, description)
[events, eventsInfo] = btkAppendEvent(h, label, time, context, subject, description, id)
h | Handle pointing to a C++ btk::Acquisition object. |
label | String with the event's label |
time | Single real number in second |
context | String indicating the context (see note #1). |
subject | String with the name of the subject. |
description | String with a descritpion. |
id | Single integer number to distinguish identical events (see note #2). |
events | A structure with the same format than in the function btkGetEvents |
eventsInfo | A structure with the same format than in the function btkGetEvents |
btkAppendEvent(h, label, time, context)
will set automaticaly the content of the subject
, description
and id
members for the inserted event. If the metadata SUBJECTS:NAMES exists, then, its first value is used to set event's subject. The description and the id members are set with informations found in the first event with the same label.btkAppendEvent(h, label, time, context, subject)
will set the description and the id members with informations found in the first event with the same label.btkAppendEvent(h, label, time, context, subject, description)
will set the id member with informations found in the first event with the same label.