Skip to content

Commit ddfb5cf

Browse files
authored
Merge pull request #3812 from asmorkalov:as/drop_convertFp16
drop convertFp16 in favor of cv::Mat::convertTo.
2 parents 3cc5923 + 596471c commit ddfb5cf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/cudev/test/test_cvt.cu

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ public:
102102

103103
// Fp32 -> Fp16
104104
cv::cuda::convertFp16(g_src, g_dst);
105-
cv::convertFp16(src, dst);
105+
src.convertTo(dst, CV_16F);
106106
// Fp16 -> Fp32
107107
cv::cuda::convertFp16(g_dst.clone(), g_dst);
108-
cv::convertFp16(dst, ref);
108+
dst.convertTo(ref, CV_32F);
109109

110110
g_dst.download(dst);
111111
EXPECT_MAT_NEAR(dst, ref, 0.0);
@@ -128,7 +128,7 @@ public:
128128

129129
// Fp32 -> Fp16
130130
cv::cuda::convertFp16(g_src, g_dst);
131-
cv::convertFp16(src, ref);
131+
src.convertTo(ref, CV_16F);
132132

133133
g_dst.download(dst);
134134
EXPECT_MAT_NEAR(dst, ref, 0.0);

modules/julia/gen/funclist.csv

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ cv.divide
77
cv.scaleAdd
88
cv.addWeighted
99
cv.convertScaleAbs
10-
cv.convertFp16
1110
cv.LUT
1211
cv.sum
1312
cv.countNonZero

0 commit comments

Comments
 (0)