File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ public:
102
102
103
103
// Fp32 -> Fp16
104
104
cv::cuda::convertFp16 (g_src, g_dst);
105
- cv::convertFp16 ( src, dst );
105
+ src. convertTo (dst, CV_16F );
106
106
// Fp16 -> Fp32
107
107
cv::cuda::convertFp16 (g_dst.clone (), g_dst);
108
- cv::convertFp16 ( dst, ref );
108
+ dst. convertTo (ref, CV_32F );
109
109
110
110
g_dst.download (dst);
111
111
EXPECT_MAT_NEAR (dst, ref, 0.0 );
@@ -128,7 +128,7 @@ public:
128
128
129
129
// Fp32 -> Fp16
130
130
cv::cuda::convertFp16 (g_src, g_dst);
131
- cv::convertFp16 ( src, ref );
131
+ src. convertTo (ref, CV_16F );
132
132
133
133
g_dst.download (dst);
134
134
EXPECT_MAT_NEAR (dst, ref, 0.0 );
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ cv.divide
7
7
cv.scaleAdd
8
8
cv.addWeighted
9
9
cv.convertScaleAbs
10
- cv.convertFp16
11
10
cv.LUT
12
11
cv.sum
13
12
cv.countNonZero
You can’t perform that action at this time.
0 commit comments