bahanonu / ciatah

CIAtah (pronounced cheetah): a software package for calcium imaging analysis of one- and two-photon imaging datasets. Documentation: https://git.io/ciatah_docs. Formerly known as calciumImagingAnalysis (ciapkg).
https://git.io/ciatah_docs
MIT License
80 stars 20 forks source link

Question about registration output #41

Closed kevinyamauchi closed 4 years ago

kevinyamauchi commented 4 years ago

Hello @bahanonu ! First off, thank you for creating the calciumImagingAnalysis MATLAB package. We are using your software to process some miniscope calcium imaging data. We are trying to interpret some of the output of the registration step (turboreg) and have a few questions. Thank you for the help!

bahanonu commented 4 years ago

@kevinyamauchi, thanks for reaching out! Hope the package is working well for you-all.

Regarding your questions, I assume you are referring to the _turboregTranslationOutput.mat file in the processing_info sub-folder?

kevinyamauchi commented 4 years ago

Thank you for the quick reply, @bahanonu ! This is super helpful.

Regarding your questions, I assume you are referring to the _turboregTranslationOutput.mat file in the processing_info sub-folder?

Yes, I am referring to the the output in the processing_info subfolder.

The translation values on each iteration are relative to the previous iteration. Thus, to re-create the absolute transformation you would need to run registration iteratively or sum the translation coordinates assuming no scale/shear (see https://www.mathworks.com/help/images/matrix-representation-of-geometric-transformations.html) was applied at any steps.

Just to make sure I understand, my understanding is that to calculate the total transformation that was performed during registration, we should create the transformation matrices for each iteration step and multiply them all together. Is that correct?

Thank you again for all of the help and for making your analysis open source. It has been super useful so far!

bahanonu commented 4 years ago

@kevinyamauchi Great to hear!

Yep, two ways to get final transformation:

kevinyamauchi commented 4 years ago

Thank you for the thorough explanation. I hope you have a great rest of your weekend!