Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Its pretty simple actually. Check the example

cv::Vec3b a;
a[0] = a[1] = a[2] = 2;

cout << a << endl;

a = 2 * a;

cout << a << endl;

Output:

[2, 2, 2]
[4, 4, 4]

Its pretty simple actually. Check the example

cv::Vec3b cv::Vec3i a;
a[0] = a[1] = a[2] = 2;

cout << a << endl;

a = 2 * a;

cout << a << endl;

Output:

[2, 2, 2]
[4, 4, 4]