Skip to content

Conversation

@nsant061
Copy link

If you have an image with all pixels having the same value. Example: https://scontent-iad3-1.cdninstagram.com/vp/d84eb53f5346d7bf1f8c8c817833e278/5B754B0D/t51.2885-15/e35/30084946_877853032375805_5440853794499854336_n.jpg
The condition (current > median) is never true and hence returns 0 hash. current >= median solves this problem.

…ever true and hence returns 0 hash. current >= median solves this problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants