Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To assign, you can use the index to specify blue, green, or red:

// orange pixels
img.at<Vec3b>(i, j)[0] = 0
img.at<Vec3b>(i, j)[1] = 127
img.at<Vec3b>(i, j)[2] = 255

To assign, you can use the index to specify blue, green, or red:

// orange pixels
img.at<Vec3b>(i, j)[0] = 0
0;
img.at<Vec3b>(i, j)[1] = 127
127;
img.at<Vec3b>(i, j)[2] = 255
255;

To assign, assign a colour, you can use the index to specify blue, green, or red:

// orange pixels
img.at<Vec3b>(i, j)[0] = 0;
img.at<Vec3b>(i, j)[1] = 127;
img.at<Vec3b>(i, j)[2] = 255;

To assign a colour, you can use the index to specify blue, green, or red:

// orange pixels
img.at<Vec3b>(i, j)[0] = 0;
img.at<Vec3b>(i, j)[1] = 127;
img.at<Vec3b>(i, j)[2] = 255;

Why do you use a reference?