Use NaN-safe clip function.
authorVincent Rabaud <vrabaud@google.com>
Thu, 16 Dec 2021 10:27:37 +0000 (11:27 +0100)
committerVincent Rabaud <vrabaud@google.com>
Thu, 16 Dec 2021 10:34:04 +0000 (11:34 +0100)
commit3da17c42a4821bd7df9bf9d43e29f8d9e138d22c
treeb38c9e76be39bb6871a1664ebadfdc0123064ffe
parent2329cbc1a2bf95a0881d9b8df4c810828c36fbc8
Use NaN-safe clip function.

This is to prevent more NaN to int conversions like in #21111.
modules/imgproc/src/color_lab.cpp
modules/imgproc/test/test_color.cpp