Home > data-analysis > modules > gaze > fixation_code > remove_loss_tracking.m

remove_loss_tracking

PURPOSE ^

This function remove eye tracking data that is out of range

SYNOPSIS ^

function data = remove_loss_tracking(data,exList)

DESCRIPTION ^

 This function remove eye tracking data that is out of range
 called by function VelocityAndDistanceThresholdFixations
 
 Inputs:   
    data:    [time cont_eye_x cont_eye_y], Nx3
   exList: indexes for all the valid eye tracking data, N*1
 
 Outputs:
   data:   valid eye tracking data, [cont_eye_x cont_eye_y time], Nx3

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function data = remove_loss_tracking(data,exList)
0002 
0003 % This function remove eye tracking data that is out of range
0004 % called by function VelocityAndDistanceThresholdFixations
0005 %
0006 % Inputs:
0007 %    data:    [time cont_eye_x cont_eye_y], Nx3
0008 %   exList: indexes for all the valid eye tracking data, N*1
0009 %
0010 % Outputs:
0011 %   data:   valid eye tracking data, [cont_eye_x cont_eye_y time], Nx3
0012 
0013 n = size(data,1);
0014 index = 0; 
0015 for i = 1 : n
0016     if (ismember(i, exList) ~= 1)
0017         index = index+1;
0018         data1(index,:) = data(i,:);
0019     end;
0020 end;
0021 data = data1;

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