User Tools

Site Tools


biac:analysis:roi_et

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
biac:analysis:roi_et [2011/04/25 20:29]
petty [PupilOmetry in Matlab]
biac:analysis:roi_et [2023/02/23 18:43] (current)
Line 359: Line 359:
 The result will be a pupilchange element added to your behavioral+ROI XML. The result will be a pupilchange element added to your behavioral+ROI XML.
  
-This example node has all previous steps run, pupil gotten smaller by 2.9% :+This example node has all previous steps run, pupil was smaller then the .5sec before image by 2.9% :
  
 <HTML> <HTML>
Line 382: Line 382:
    </event>    </event>
 </HTML> </HTML>
 +
 +
 +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 /usr/local/packages/MATLAB/BIAC/startup.m
 +
 +%% add path to pupilOmetry function
 +%addpath /home/petty/net/munin/data/Programs/User_Scripts/petty/matlab/
 +%addpath \\Munin\Data\Programs\User_Scripts\petty\matlab\
 +
 +%%input XML ( merged behavioral + ROI )
 +xmlName = '/home/petty/eyetracking/autreg/11436_run04_roiHits.xml';
 +
 +%%preprocessed eyetracking output
 +ET_filename = '/home/petty/net/hill/data/Dichter/AutReg.01/Data/Eyetracking/subj1234_run1_pre.wks';
 +
 +%%the attribute to match images with from the inputXML
 +imgAttr = 'imgName';
 +
 +%%output name of the XML with added pupilOmetry data. will be everything from input + pupilchange
 +outName = '/home/petty/eyetracking/autreg/11436_cigal_pupil2.xml';
 +
 +%%show the denoising plots
 +plot = 0; %1 to show, 0 to skip
 +
 +%%run the actual function
 +pupilOmetry(xmlName,ET_filename,imgAttr,outName,plot);
 +</file>
 +
 +
 +===== future =====
 +  * If there are any suggestions for added features, or something just isn't right please contact Chris
  
biac/analysis/roi_et.1303763358.txt.gz · Last modified: 2014/08/04 16:03 (external edit)