Home > demos > demo_generate_gaze_data_heatmap.m

demo_generate_gaze_data_heatmap

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001  clear all;
0002 
0003 % Creates and save heatmaps similar to "generate_toy_heatmaps()",
0004 % but using eye gaze as the data source. Check "generate_toy_heatmaps()"
0005 % for additional infos
0006 %
0007 % NOTE: Visualized eye gaze data is "normalized" on a per trial basis,
0008 % meaning that the data is translated such that the mean of all gaze
0009 % points of a trial is at the center.
0010 
0011 % PARAMETERS
0012 
0013 % - EXP_LIST:
0014 %   List of subjects to run. Can be a list of experiments, e.g. [41 44]
0015 %   or a list of subject IDs, e.g. 4301 4303
0016 %
0017 % - SUBJECT:
0018 %   Can be either 'child' or 'parent' for either child view or parent view
0019 %   or a list of subject IDs, e.g. 4301 4303
0020 %
0021 % - FOLDER:
0022 %   Name of folder to save results to:
0023 %   /ein/multiwork/experiment_XX/included/data_vis/FOLDER/
0024 %
0025 % - EVENT_VAR (optional):
0026 %   Can be any CEVENT or EVENT variable. If this optional variable is given,
0027 %   only eye gaze during events is visualized. Otherwise, all eye gaze is
0028 %   visualized
0029 %
0030 % - NEGATE_VAR (optional):
0031 %   Negate the event variable, i.e. consider all moments where the event is
0032 %   not true
0033 %
0034 % - TARGET_RESOLUTION (optional):
0035 %   Due to different cameras models the max. resolution/range of eye gaze
0036 %   varies accross subjects. This function scales all its visualization to
0037 %   the same resolution, TARGET_RESOLUTION, to make them comparable. By
0038 %   default, this resolution is [480 640].
0039 
0040 
0041 %% modify parameters below
0042 EXP_LIST = [43];                                        % required parameter
0043 SUBJECT = 'child';                                      % required parameter
0044 FOLDER = 'heatmap_4';                                    % required parameter
0045 EVENT_VAR = 'event_motion_pos_head_big-moving_child';    % optional parameter
0046 NEGATE_VAR = false;                                        % optional parameter
0047 TARGET_RESOLUTION = [480 640];                          % optional parameter
0048 
0049 generate_gaze_data_heatmap(EXP_LIST, SUBJECT, FOLDER, EVENT_VAR, NEGATE_VAR, TARGET_RESOLUTION)

Generated on Tue 23-May-2017 03:00:58 by m2html © 2005