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

Avoid loading entire pages when dealing with multiROI scans #6

Open
ecobost opened this issue Apr 6, 2019 · 0 comments
Open

Avoid loading entire pages when dealing with multiROI scans #6

ecobost opened this issue Apr 6, 2019 · 0 comments

Comments

@ecobost
Copy link
Collaborator

ecobost commented Apr 6, 2019

ScanImage saves each scanning depth as a different tiff page; for multiROI scans (such as mesoscope scans) this means that there would often be more than one field in the same page (they appear stacked on below each other). Our main use cases load scans field by field, however, tifffile only allows us to load entire pages so we load the entire page and discard the parts that we are not interested in. This is wasteful, it reads (and transmits over the network if the file is not local) way more data than what we actually need.

We should rewrite tifffile to receive in addition to the list of pages---which it does now---, the starting row and the number of rows we want to read. Similar to #5, this would require modifications to the tifffile library---which is actually a single .py file; we could use this opportunity to create our own tiff reading library tailored to scanimage files which will hopefully produce a cleaner, more efficient implementation.

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

No branches or pull requests

1 participant