VH-Lab / vhlab-TwoPhoton-matlab

VH Lab tools for analysis of calcium imaging data
MIT License
0 stars 0 forks source link

Bug in position of cells with respect to preview image for non-parent images #7

Closed stevevanhooser closed 7 years ago

stevevanhooser commented 7 years ago

There is a shift in the view of the position of cells between the analyzetpstack view and the view in drift check and manual drift correct. When I check the actual ROI with drift check, it appears that the view in drift check and the manual drift correct tool are self-consisent (that is, they are the "correct" view) and analyzetpstack is the incorrect view.

stevevanhooser commented 7 years ago

View in drift check has to agree with data because the same routine is used (tpreadframe)

stevevanhooser commented 7 years ago

Bug fixed. analyzetpstack_previewimage called analyzetpstack_getdirdrift with no number of drift frames argument, and the function analyzetpstack_getdirdrift did something odd (did a mean over columns instead of over rows) when the number of drift frames is 1 (default argument).