Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

drawContours with Gradient color

How to drawContours with gradient colors, not with single color.

cv::drawContours( img, contours, i, color, CV_FILLED, 8, std::vector<cv::vec4i>(), 0, cv::Point() );

As drawContours require a single color, So my question is how to pass a gradient instead of single color.