Skip to content

Commit

Permalink
Update running.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Atika-Syeda authored Oct 26, 2023
1 parent 3dbd06a commit e763592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions facemap/running.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def process(data):
X = multiplytype(X, maskMul)
# X -= X.mean(axis=-1).mean(axis=-1)[:,np.newaxis,np.newaxis]
for t in range(nt):
fft2(X[t], overwrite_x=True)
fft2(X[t])
# phase correlation with previous frame
X = phase_norm(X, fhg.astype(np.complex64))
Xout = X[1:] * np.conj(X[:-1])
for t in range(nt - 1):
ifft2(Xout[t], overwrite_x=True)
ifft2(Xout[t])
x00, x01, x10, x11 = my_clip(Xout, lcorr)
cc = np.real(np.block([[x11, x10], [x01, x00]]))
# cc = spatial_smooth(cc, 2)
Expand Down

0 comments on commit e763592

Please sign in to comment.