rectangle color always gray
Hi
Silly little problem , but for some reason the method rectangle does not react to the input argument.
This should yield a red box, but the box is always gray no matter what I do to the input arguments of Scalar.
rectangle( CurrentMat, matchLoc, Point( matchLoc.x + TemplateMat.cols , matchLoc.y + TemplateMat.rows ), Scalar(0,0,255), 2, 8, 0);
Any suggestions? TIA.
Are your CurrentMat grayscale? If CurrentMat is 1-channel mat, rectangle always draw grayscale objects.