Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save and interpret pupil data #86

Open
mckennabrown opened this issue Feb 10, 2023 · 5 comments
Open

How to save and interpret pupil data #86

mckennabrown opened this issue Feb 10, 2023 · 5 comments
Assignees

Comments

@mckennabrown
Copy link

Hi!
This is somewhat similar to #64, although I'm asking about different aspects of the pupil data.

Is there a way to save just pupil area without computing the fullSVD? I'm particularly interested in steps using the python GUI.

Additionally, it might be helpful to specify in the documentation that the "save ROIs" button just saves information about the drawn ellipse and settings, not the actual pupil within the pupil ROI.

@mckennabrown
Copy link
Author

I've looked and it seems the saved roi data doesn't change based on how I modify the ROIs (specifically I increased saturation for a pupil ROI and saved the ROI and checked the .npy data and the saved saturation remained the same). Am I interpreting the saved ROIs incorrectly?

@maxseppo
Copy link

I'm also curious if there is a way to compute only pupil diameter.

@ZiTao956
Copy link

ZiTao956 commented Aug 7, 2023

I also want only to compute pupil ROI. And I would like to have the output of the pupil ROI after increase saturation.

@maxyccc
Copy link

maxyccc commented Jan 16, 2025

The code ensures that motSVD and movSVD cannot both be unchecked:

if self.motSVD_checkbox.isChecked() or self.movSVD_checkbox.isChecked():

However, if no other ROI types (motion SVD type) are selected, the loop will only perform pupil extraction, even if motSVD and movSVD are selected.

see this:

def run(

and this:

def process_ROIs(

This can be confirmed by comparing the total time consumed during execution.
Just remember to uncheck the multivideo (FullSVD == false) and no other ROI types (nroi == 0).

@maxyccc
Copy link

maxyccc commented Jan 16, 2025

The "Save ROIs" button is designed for the following workflow:

Load video 1 → Set the pupil ROI and saturation for video 1 → Save ROIs (this adds the video 1 to the batch list).
Load video 2 → Set the pupil ROI and saturation for video 2 → Save ROIs (this adds the video 2 to the batch list).
Repeat for all videos.

see this:

self.batchlist.append(savename)

Once all videos are loaded and their ROIs saved, press "Process Batch,"

By the time you wake up next morning, the videos will be fully analyzed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants