Extracts rectangular areas of interest (AOI),
as defined by "!V IAREA RECTANGLE"
command.
Specifically, we expect it to be in format
!V IAREA RECTANGLE <index> <left> <top> <right> <bottom> <label>
,
where <label>
is a string label and all other variables are integer.
Please note that due to a non-standard nature of this function is not called
during the read_edf
call and you need to call it separately.
Usage
extract_AOIs(object)
# S3 method for class 'data.frame'
extract_AOIs(object)
# S3 method for class 'eyelinkRecording'
extract_AOIs(object)
Arguments
- object
Either an
eyelinkRecording
object or data.frame with events, i.e.,events
slot of theeyelinkRecording
object.
Value
Object of the same time as input, i.e., either a eyelinkRecording
object
with an additional AOIs
slot or a data.frame with AOIs' information. See
eyelinkRecording
for details.
Examples
data(gaze)
# by passing the recording
gaze <- extract_AOIs(gaze)
# by passing events table
AOIs <- extract_AOIs(gaze$events)