Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Here img is 16UC3... Comparing is wrong...Can someone help me with this

$
0
0
Mat image(5620, 4894, CV_16UC3, Scalar(0, 0, 0)); for (int j = 0; j < Change_Detected.rows; j++) { for (int l = 0; l < Change_Detected.cols; l++) { if (img.at(i,j)>200) { image.at(j, l)[0] = img.at(j, l)[0]; image.at(j, l)[1] = img.at(j, l)[1]; image.at(j, l)[2] = img.at(j, l)[2]; } } }

Viewing all articles
Browse latest Browse all 19555

Trending Articles