Skip to content

Commit

Permalink
drop convertFp16 in favor of cv::Mat::convertTo.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Oct 18, 2024
1 parent 3cc5923 commit 596471c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/cudev/test/test_cvt.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion modules/julia/gen/funclist.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ cv.divide
cv.scaleAdd
cv.addWeighted
cv.convertScaleAbs
cv.convertFp16
cv.LUT
cv.sum
cv.countNonZero
Expand Down

0 comments on commit 596471c

Please sign in to comment.