We have learned about the Mat and Vec3b classes, but there are many more classes that we have to learn.
In this section, we will learn the most basic object types required in the majority of projects:
- Vec
- Scalar
- Point
- Size
- Rect
- RotatedRect
We have learned about the Mat and Vec3b classes, but there are many more classes that we have to learn.
In this section, we will learn the most basic object types required in the majority of projects:
Vec is a template class mainly for numerical vectors. We can define any type of vector and the number of components:
Vec<double,19> myVector;
We can also use any of the predefined types:
typedef Vec<uchar, 2> Vec2b; typedef Vec<uchar, 3> Vec3b; typedef Vec<uchar, 4> Vec4b; typedef Vec<short, 2> Vec2s; typedef Vec<short, 3> Vec3s; typedef Vec<short, 4> Vec4s; typedef Vec<int, 2> Vec2i;...
Change the font size
Change margin width
Change background colour