1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #29078 from omrope79:dep_convertFp16

Deprecate CUDA's convertFp16() in favor of convertTo() with CV_16F
This commit is contained in:
Alexander Smorkalov
2026-05-21 15:26:54 +03:00
committed by GitHub
3 changed files with 2 additions and 46 deletions
-1
View File
@@ -1991,7 +1991,6 @@ static void test_20279(FileStorage& fs)
m32fc1.at<float>((int)i) = v * 0.5f;
}
Mat m16fc1;
// produces CV_16S output: convertFp16(m32fc1, m16fc1);
m32fc1.convertTo(m16fc1, CV_16FC1);
EXPECT_EQ(CV_16FC1, m16fc1.type()) << typeToString(m16fc1.type());
//std::cout << m16fc1 << std::endl;