DataBase  
 
    back
 

Usage of the fixations data

 


  In Matlab

% load the data
>> load fixations.mat;
>> load imgList.mat;
>> load annotations.mat;

% plot the image (image 16 - chosen arbitrarily)
>> img = imread(imgList{16});
>> imagesc(img);
>> hold on;

% plot the fixations (subject 2 - chosen arbitrarily)
>> plot(sbj{2}.scan{16}.fix_x,sbj{2}.scan{16}.fix_y,'ro');

% plot the saccades
>> plot(sbj{2}.scan{16}.scan_x,sbj{2}.scan{16}.scan_y,'y-','LineWidth',3);