flatironinstitute / NoRMCorre

Matlab routines for online non-rigid motion correction of calcium imaging data
GNU General Public License v2.0
144 stars 89 forks source link

Motion correction for multiple tiff files #12

Closed yatangli closed 7 years ago

yatangli commented 7 years ago

Can this program combine multiple tiff files and then do the motion correction, and save the motion corrected tiff files?

epnev commented 7 years ago

@yatangli Yes, there are two ways you can deal with this: 1) Create a for loop where you correct each file with the template you obtained from the previous one. See e.g., lines 5-40 in this file. You'll need to change the output _type to 'tiff' in the options. 2) You can use this function to combine your files into one big file and then correct it.

1 is recommended if each file is long enough, so that a template can be created. #2 is recommended for short files.

Let me know if there are issues.