1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

follow the naming rule as other API

* stop using 'CUDA' prefix
  * add explanation
This commit is contained in:
Tomoaki Teshima
2016-08-01 18:42:09 +09:00
parent b2698f24b0
commit 2db2d137ce
3 changed files with 15 additions and 8 deletions
+6 -6
View File
@@ -101,11 +101,11 @@ public:
GpuMat g_dst;
// Fp32 -> Fp16
convertFp16Cuda(g_src, g_dst);
convertFp16Cuda(g_dst.clone(), g_dst);
cuda::convertFp16(g_src, g_dst);
cv::convertFp16(src, dst);
// Fp16 -> Fp32
convertFp16(src, dst);
convertFp16(dst, ref);
cuda::convertFp16(g_dst.clone(), g_dst);
cv::convertFp16(dst, ref);
g_dst.download(dst);
EXPECT_MAT_NEAR(dst, ref, 0.0);
@@ -127,8 +127,8 @@ public:
GpuMat g_dst;
// Fp32 -> Fp16
convertFp16Cuda(g_src, g_dst);
convertFp16(src, ref);
cuda::convertFp16(g_src, g_dst);
cv::convertFp16(src, ref);
g_dst.download(dst);
EXPECT_MAT_NEAR(dst, ref, 0.0);