Fix H clamping for very small negative values.
authorVincent Rabaud <vrabaud@google.com>
Mon, 15 Nov 2021 12:09:02 +0000 (13:09 +0100)
committerVincent Rabaud <vrabaud@google.com>
Fri, 19 Nov 2021 15:34:09 +0000 (16:34 +0100)
commitd4741eece17480b4744ee423003a25b5c20f38a0
treeeb6e6436ac4904a000c96dac39c18f9aa6c99a82
parent585484cb06172af7422e255c09d417b36627a7d1
Fix H clamping for very small negative values.

In case of very small negative h (e.g. -1e-40), with the current implementation,
you will go through the first condition and end up with h = 6.f, and will miss
the second condition.
modules/imgproc/src/color_hsv.simd.hpp