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

Allow Matx static function to work with Vec.

This commit is contained in:
Vincent Rabaud
2022-03-04 11:57:14 +01:00
parent a082375d57
commit 057c3da82a
3 changed files with 46 additions and 0 deletions
+10
View File
@@ -2381,4 +2381,14 @@ TEST(Mat, ptrVecni_20044)
EXPECT_EQ(int(6), *(ci));
}
TEST(Mat, VecMatx_4650)
{
// Makes sure the following compiles.
cv::Vec3b a;
a = cv::Vec3b::ones();
a = cv::Vec3b::zeros();
a = cv::Vec3b::randn(0, 10);
a = cv::Vec3b::randu(0, 10);
}
}} // namespace