opencv/modules/ts
Vadim Pisarevsky 853fa9dd40
Merge pull request #26400 from vpisarev:fix_fp16_cmp
Fixed FP16 mat comparison in tests #26400

make sure that if both compared FP16/BF16 values are bitwise-equal, assume their difference to be 0 (zero), just like in the case of FP32 and FP64, don't try to compare them as floating-point numbers, because they can be NaN's.

**fixes** #24894

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2024-11-02 12:07:48 +03:00
..
include/opencv2 C-API cleanup: rework ArrayTest to use new arrays only 2024-10-09 22:36:20 +03:00
misc Drop Python2 support. 2023-07-14 15:06:53 +03:00
src Merge pull request #26400 from vpisarev:fix_fp16_cmp 2024-11-02 12:07:48 +03:00
CMakeLists.txt Fix QNX build 2024-01-16 13:51:22 +08:00