Skip to content

Commit

Permalink
fix(anaglyph.py): Black format update.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeyer committed Oct 5, 2023
1 parent fc18c78 commit 67a900f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vipersci/vis/anaglyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def correlate_and_shift(left: NDArray, right: NDArray) -> NDArray:
function with performs the correlation, and then shifts the array.
"""
shift = tuple(
phase_cross_correlation(
left, right, return_error="always", normalization=None
)[0].astype(int)
phase_cross_correlation(left, right, return_error="always", normalization=None)[
0
].astype(int)
)
logger.info(f"Right image shift: {shift}")
return np.roll(right, shift, (0, 1))
Expand Down

0 comments on commit 67a900f

Please sign in to comment.