1 | initial version |
try
typedef Vec<uchar, 2> Vec2b;
try
typedef Vec<uchar, 2> Vec2b;
Vec2b v = Vec2b::all(5);
3 | fixed formatting |
try
// if that's the type
typedef Vec<uchar, 2> Vec2b;
// you get a vector containing all elements set to 5.
Vec2b v = Vec2b::all(5);