AllenInstitute / ophys_etl_pipelines

Pipelines and modules for processing optical physiology data
Other
9 stars 5 forks source link

Write utility to create reference image for motion correction #390

Closed danielsf closed 2 years ago

danielsf commented 2 years ago

Based on experimentation with Suite2P's reference image generation routine, we have found that Suite2P reference image generation can fail in the low SNR regime. Specifically, it fails by wrapping the field of view vertically or horizontally. This failure propagates to the motion corrected movie. It is our hope that creating a properly generated reference image will solve this problem.

Tasks

Validation

morriscb commented 2 years ago

Finished up the function after testing it against the test data provided by @danielsf. All data were found to produce identical results to the hacked version of suite2p, thus we are confident the code presented here is working as intended. Once this ticket is merged we can hook up the compute_reference function into the registration pipeline.