Home > data-import > gaze > demo_check_image_size_gaze_range.m

demo_check_image_size_gaze_range

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 % exp_id = [29 32 34 35];
0004 exp_id = 34;
0005 sub_list = list_subjects(exp_id);
0006 % target_cam_list = {'cam01', 'cam02', 'cam03', 'cam04', 'cam07', 'cam08'};
0007 % target_cam_list = {'cam01', 'cam02', 'cam07', 'cam08'};
0008 % target_cam = {'cam07', 'cam08'};
0009 
0010 enable_visualize_heatmap = true;
0011 enable_check_visualize_range = true;
0012 % enable_visualize_heatmap = false;
0013 % enable_check_visualize_range = false;
0014 is_record_var = false;
0015 
0016 % for sidx = 1:length(sub_list)
0017     sidx = 16;
0018     child_frame_offset = 0;
0019     sub_id = sub_list(sidx);
0020     % gather all the information for gaze data
0021     gaze_info = import_check_csv_eye_files_complete(sub_id, child_frame_offset, ...
0022         is_record_var, ...
0023         enable_visualize_heatmap, enable_check_visualize_range);
0024     
0025 %     % gather images sizes in all cameras
0026 %     imgsize_list = preprocess_check_image_size(sub_id, target_cam_list);
0027 %     imgsize_list = cell2mat(imgsize_list);
0028     
0029     % output all the information in a row to be store in the excel file
0030     % image_size_eye_data_complete_log.xlsx
0031     if gaze_info.exist_child_gaze_data && gaze_info.exist_parent_gaze_data
0032         gaze_info_row = [ ...
0033             gaze_info.sub_folder_create_time gaze_info.child_csv_modify_time gaze_info.parent_csv_modify_time ...
0034             gaze_info.child_frame_offset_cumulative ...
0035             gaze_info.eye_x_max gaze_info.eye_y_max gaze_info.is_need_rescale ...
0036             gaze_info.child_gaze_valid_prop gaze_info.parent_gaze_valid_prop ...
0037             gaze_info.child_gaze_range_x gaze_info.child_gaze_range_y ...
0038             gaze_info.parent_gaze_range_x gaze_info.parent_gaze_range_y];
0039     elseif gaze_info.exist_child_gaze_data && ~gaze_info.exist_parent_gaze_data
0040         gaze_info_row = [ ...
0041             gaze_info.sub_folder_create_time gaze_info.child_csv_modify_time NaN ...
0042             gaze_info.child_frame_offset_cumulative ...
0043             gaze_info.eye_x_max gaze_info.eye_y_max gaze_info.is_need_rescale ...
0044             gaze_info.child_gaze_valid_prop NaN ...
0045             gaze_info.child_gaze_range_x gaze_info.child_gaze_range_y ...
0046             NaN NaN  NaN NaN];
0047     elseif ~gaze_info.exist_child_gaze_data && gaze_info.exist_parent_gaze_data
0048         gaze_info_row = [ ...
0049             gaze_info.sub_folder_create_time NaN gaze_info.parent_csv_modify_time ...
0050             NaN ...
0051             gaze_info.eye_x_max gaze_info.eye_y_max gaze_info.is_need_rescale ...
0052             NaN gaze_info.parent_gaze_valid_prop ...
0053             NaN NaN NaN NaN ...
0054             gaze_info.parent_gaze_range_x gaze_info.parent_gaze_range_y];
0055     elseif ~gaze_info.exist_child_gaze_data && ~gaze_info.exist_parent_gaze_data
0056         gaze_info_row = [ ...
0057             gaze_info.sub_folder_create_time NaN NaN ...
0058             NaN ...
0059             gaze_info.eye_x_max gaze_info.eye_y_max gaze_info.is_need_rescale ...
0060             NaN NaN ...
0061             NaN NaN NaN NaN ...
0062             NaN NaN NaN NaN];
0063     end
0064 % end

Generated on Wed 24-May-2017 00:00:56 by m2html © 2005