Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

Any suggestions? TIA.

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.