Skip to content

Commit

Permalink
adjustments for cv2.BORDER_TRANSPARENT remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Sep 29, 2023
1 parent b800ca0 commit a9e8a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ortho.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ def test_mask_dem(
# test dem mask contains, and is similar to the ortho mask
assert dem_transform_mask == dem_transform
assert dem_mask.shape == ortho_mask.shape
assert dem_mask[ortho_mask].sum() / ortho_mask.sum() > 0.9
assert dem_mask[ortho_mask].sum() / ortho_mask.sum() > 0.95
cc = np.corrcoef(dem_mask.flatten(), ortho_mask.flatten())
assert (np.all(dem_mask) and np.all(ortho_mask)) or (cc[0, 1] > 0.95)
assert (np.all(dem_mask) and np.all(ortho_mask)) or (cc[0, 1] > 0.9)

if False:
# debug plotting code
Expand Down

0 comments on commit a9e8a49

Please sign in to comment.