webgazeR v0.7.2
  1. Reference
  2. extract_aois
  • Home
  • Articles
    • Calculating Intersubject Correlations
    • Introduction to webgazeR
  • Reference
    • analyze_sampling_rate
    • assign_aoi
    • calculate_isc
    • downsample_gaze
    • extract_aois
    • filter_sampling_rate
    • find_location
    • gaze_dispersion
    • gaze_oob
    • interpolate_gaze
    • make_webgazer
    • merge_webcam_files
    • plot_IA_proportions
    • smooth_gaze
    • upsample_gaze
  • Citation
  1. Reference
  2. extract_aois

Extract AOI-related Columns from Webcam Files and Calculate Locations

Description

This function reads in multiple Gorilla webcam files, extracts the ‘loc’, ‘x_normalised’, ‘y_normalised’, ‘width_normalised’, and ‘height_normalised’ columns, and calculates the bounding box coordinates for the AOIs. It also rounds all numeric columns to 3 decimal places.

Usage

extract_aois(file_paths, zone_names = NULL)

Arguments

file_paths A list of file paths to webcam files (in .xlsx format).

Value

A dataframe containing distinct rows with AOI-related columns and calculated coordinates.