Ask Your Question

Revision history [back]

As berak indicated I suggest converting the greyscale image back to color before applying the drawing function:

cv::cvtColor(facade, facadeColor, cv::COLOR_GRAY2BGR);
cv::fillPoly(facadeColor, ppt, npt, 1, cv::Scalar( 0, 0, 255 ), 8);