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

Changes for fp16 conversion

This commit is contained in:
Om Navin Rope
2026-05-20 14:35:52 +05:30
parent cc8f683b6a
commit 1e731a2e2a
3 changed files with 2 additions and 46 deletions
-1
View File
@@ -1977,7 +1977,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;