From 596471c5e8da75e65a56ab4248c59d5224ed44fa Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Fri, 18 Oct 2024 09:28:47 +0300 Subject: [PATCH] drop convertFp16 in favor of cv::Mat::convertTo. --- modules/cudev/test/test_cvt.cu | 6 +++--- modules/julia/gen/funclist.csv | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/cudev/test/test_cvt.cu b/modules/cudev/test/test_cvt.cu index b1847132a88..84efaf73f00 100644 --- a/modules/cudev/test/test_cvt.cu +++ b/modules/cudev/test/test_cvt.cu @@ -102,10 +102,10 @@ public: // Fp32 -> Fp16 cv::cuda::convertFp16(g_src, g_dst); - cv::convertFp16(src, dst); + src.convertTo(dst, CV_16F); // Fp16 -> Fp32 cv::cuda::convertFp16(g_dst.clone(), g_dst); - cv::convertFp16(dst, ref); + dst.convertTo(ref, CV_32F); g_dst.download(dst); EXPECT_MAT_NEAR(dst, ref, 0.0); @@ -128,7 +128,7 @@ public: // Fp32 -> Fp16 cv::cuda::convertFp16(g_src, g_dst); - cv::convertFp16(src, ref); + src.convertTo(ref, CV_16F); g_dst.download(dst); EXPECT_MAT_NEAR(dst, ref, 0.0); diff --git a/modules/julia/gen/funclist.csv b/modules/julia/gen/funclist.csv index 0c926d5e622..456af70f32a 100644 --- a/modules/julia/gen/funclist.csv +++ b/modules/julia/gen/funclist.csv @@ -7,7 +7,6 @@ cv.divide cv.scaleAdd cv.addWeighted cv.convertScaleAbs -cv.convertFp16 cv.LUT cv.sum cv.countNonZero