Skip to content

Commit

Permalink
Merge pull request #68 from UBC-MDS/fix-most-common-rgb-func
Browse files Browse the repository at this point in the history
Fix most common rgb func
  • Loading branch information
hchqin authored Feb 1, 2024
2 parents 1ba6dea + 6e4a5b2 commit 4e412e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hexdropper/most_common_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def most_common_rgb(input_array):
Examples
--------
>>> most_common_rgb(img_arr)
(8, 181, 213)
"""
# check that the input range is between 0 and 255
if np.min(input_array) < 0 or np.max(input_array) > 255:
Expand Down

0 comments on commit 4e412e3

Please sign in to comment.