I want to make decision that whether two images match or not on the basis of pixel value.Here is a portion of my code
Vec3b intensity = image.at<Vec3b>(j, i);
uchar blue = intensity.val[0];
uchar green = intensity.val[1];
uchar red = intensity.val[2];
uchar col=blue+green+red;
similarly intensity1,blue1,....for other image and compare 'col 'of both images. But it is not giving correct output (unable to match two pixels in terms of their pixel values) ,Does this code is calculating intensities correctly??