This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
biac:analysis:roi_et [2011/04/25 20:17] petty [Visualizing Eyetracking Points in Matlab] |
biac:analysis:roi_et [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 343: | Line 343: | ||
The output will look like this: | The output will look like this: | ||
+ | |||
{{: | {{: | ||
Line 350: | Line 351: | ||
Also, if you just have the behavioral XML and preprocessed ET data, you can run the function **ET_plot** instead. | Also, if you just have the behavioral XML and preprocessed ET data, you can run the function **ET_plot** instead. | ||
+ | |||
+ | |||
+ | ===== PupilOmetry in Matlab ===== | ||
+ | |||
+ | A matlab script based on pupilometry steps from {{: | ||
+ | |||
+ | The result will be a pupilchange element added to your behavioral+ROI XML. | ||
+ | |||
+ | This example node has all previous steps run, pupil was smaller then the .5sec before image by 2.9% : | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <value name=" | ||
+ | <value name=" | ||
+ | <value name=" | ||
+ | <value name=" | ||
+ | <value name=" | ||
+ | <roi type=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <value name=" | ||
+ | <value name=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | The pupilOmetry function can be found: \\Munin\Data\Programs\Users_Scripts\petty\matlab\ or just added to your path. | ||
+ | |||
+ | This example script will run pupilOmetry on preprocessed eyetracking data and create the new XML with the added element: | ||
+ | |||
+ | <file matlab run_pupilOmetry_sample.m> | ||
+ | %% add BIAC tools if needed | ||
+ | %run / | ||
+ | |||
+ | %% add path to pupilOmetry function | ||
+ | %addpath / | ||
+ | %addpath \\Munin\Data\Programs\User_Scripts\petty\matlab\ | ||
+ | |||
+ | %%input XML ( merged behavioral + ROI ) | ||
+ | xmlName = '/ | ||
+ | |||
+ | %%preprocessed eyetracking output | ||
+ | ET_filename = '/ | ||
+ | |||
+ | %%the attribute to match images with from the inputXML | ||
+ | imgAttr = ' | ||
+ | |||
+ | %%output name of the XML with added pupilOmetry data. will be everything from input + pupilchange | ||
+ | outName = '/ | ||
+ | |||
+ | %%show the denoising plots | ||
+ | plot = 0; %1 to show, 0 to skip | ||
+ | |||
+ | %%run the actual function | ||
+ | pupilOmetry(xmlName, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== future ===== | ||
+ | * If there are any suggestions for added features, or something just isn't right please contact Chris | ||