nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
58 stars 15 forks source link

extract mcorr movie as tiff #274

Closed Jorgenhoyer closed 6 months ago

Jorgenhoyer commented 6 months ago

Is there a way to extract the motion corrected movies and save them as tiff?

kushalkolar commented 6 months ago

What are you actually trying to do? The memmaps behave just like any other numpy array and are much nicer to work with than tiff files (lazy loading, etc.)

Jorgenhoyer commented 6 months ago

Yes, thats true. But I need the mcorr video for use outside of mesmerize.

kushalkolar commented 6 months ago

You can write to a tiff file using the tifffile library, create a TiffWriter object and write to it frame-by-frame. I don't have it off the top of my head but it's easy to figure out :)

Jorgenhoyer commented 6 months ago

Ok, thanks:)