Skip to content

Commit

Permalink
fix(anaglyph.py): Updated call to phase_cross_correlation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeyer committed Oct 4, 2023
1 parent f76ab8a commit ffd4911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Fixed
out.
- nss_simulator.py, when asked to produce an output set of maps, uses a zero nodata value
rather than whatever nodata value was present in the input burial depth map.
- anaglyph.py needed some minor changes to align with upcoming changes in the
scikit-image architecture.


0.6.0 (2023-09-25)
Expand Down
4 changes: 2 additions & 2 deletions src/vipersci/vis/anaglyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def correlate_and_shift(left: NDArray, right: NDArray) -> NDArray:
"""
shift = tuple(
phase_cross_correlation(
left, right, return_error=False, normalization=None
).astype(int)
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 ffd4911

Please sign in to comment.