opencv/modules/ts/src
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
..
cuda_perf.cpp build: detect Android via '__ANDROID__' macro 2017-07-10 12:43:59 +03:00
cuda_test.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2023-01-23 00:11:12 +00:00
ocl_perf.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-12-03 12:32:49 +00:00
ocl_test.cpp Backport C-API cleanup (imgproc) from 5.x 2023-01-16 23:29:50 +03:00
precomp.hpp js: fix build of SIMD tests 2021-10-08 20:15:41 +00:00
ts_arrtest.cpp C-API cleanup: rework ArrayTest to use new arrays only 2024-10-09 22:36:20 +03:00
ts_func.cpp Merge pull request #26400 from vpisarev:fix_fp16_cmp 2024-11-02 12:07:48 +03:00
ts_gtest.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2022-05-23 16:06:14 +00:00
ts_perf.cpp Added new data types to cv::Mat & UMat (#23865) 2023-08-04 10:50:03 +03:00
ts_tags.cpp Revert PR 24186 as it force skip tests. 2023-09-05 14:35:37 +03:00
ts_tags.hpp ts: count skipped tests via SkipTestException 2019-11-26 18:34:04 +03:00
ts.cpp Merge pull request #25984 from fengyuentau:imgproc/warpaffine_opt 2024-10-03 14:01:36 +03:00