This shows you the differences between two versions of the page.
mgl:mglcamera [2019/10/29 12:08] |
mgl:mglcamera [2019/10/29 12:15] |
||
---|---|---|---|
Line 211: | Line 211: | ||
The file it saves is a standard [[:mgl:taskReferenceOverview|mgl task]] structure that has been converted with [[:mgl:taskReferenceSavingData#gettaskparameters|getTaskParameters]] and has added on to it a structure with the camera images. | The file it saves is a standard [[:mgl:taskReferenceOverview|mgl task]] structure that has been converted with [[:mgl:taskReferenceSavingData#gettaskparameters|getTaskParameters]] and has added on to it a structure with the camera images. | ||
- | It will be saved in a matlab file with name: | + | It will be saved in a matlab file with session-id as follows: |
SID_YYYYMMDD_HHMMDD.mat | SID_YYYYMMDD_HHMMDD.mat | ||
Line 283: | Line 283: | ||
</code> | </code> | ||
- | The filename is the video file that was saved for that particular trial. These images were taken of the screen while the experiment was runningand can be viewed in matlab using [[:mrTools:mlrImage#mlrvol|mlrVol]]: | + | The filename is the video file that was saved for that particular trial. It is in the format [session-id]-[trial-sequence-number]. These images were taken of the screen while the experiment was running and can be viewed in matlab using [[:mrTools:mlrImage#mlrvol|mlrVol]]: |
<code> | <code> | ||
Line 292: | Line 292: | ||
frameNum = frameNum+1; | frameNum = frameNum+1; | ||
end | end | ||
- | >> mlrVol(im) | + | mlrVol(im) |
</code> | </code> | ||