mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #26327 from asmorkalov:as/drop_convertFp16
Finally dropped convertFp16 function in favor of cv::Mat::convertTo() #26327 Partially address https://github.com/opencv/opencv/issues/24909 Related PR to contrib: https://github.com/opencv/opencv_contrib/pull/3812 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [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 - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
This commit is contained in:
committed by
GitHub
parent
a40ceff215
commit
9f0c3f5b2b
@@ -1672,9 +1672,9 @@ OCL_TEST_P(ConvertFp16, Mat)
|
||||
for (int j = 0; j < test_loop_times; j++)
|
||||
{
|
||||
generateTestData();
|
||||
|
||||
OCL_OFF(cv::convertFp16(src_roi, dst_roi));
|
||||
OCL_ON(cv::convertFp16(usrc_roi, udst_roi));
|
||||
int cvt_code = src_roi.depth() == CV_32F ? CV_16F : CV_32F;
|
||||
OCL_OFF(src_roi.convertTo(dst_roi, cvt_code));
|
||||
OCL_ON(usrc_roi.convertTo(udst_roi, cvt_code));
|
||||
|
||||
Near(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user