Skip to content

Commit

Permalink
Merge pull request #372 from albu/equalize_true_divide
Browse files Browse the repository at this point in the history
fix _equalize_cv true divide
  • Loading branch information
Dipet committed Sep 23, 2019
2 parents db20c0b + 166262b commit f38e153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albumentations/augmentations/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _equalize_cv(img, mask=None):
if histogram[i] == total:
return np.full_like(img, i)

scale = 255 / (total - histogram[i])
scale = 255.0 / (total - histogram[i])
_sum = 0

lut = np.zeros(256, dtype=np.uint8)
Expand Down

0 comments on commit f38e153

Please sign in to comment.