Ask Your Question
0

how can I fill plane of connected line at the OpenCV ?

asked 2013-03-19 22:21:53 -0600

dennis gravatar image

I had drawing line to point. So the Lines is made like plane.

I want to fill plane some color. But I couldn't fill color of that.

for example if I make triangle use points. I want to fill color in triangle.


How Can I fill plane of connected line at the openCV?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-03-20 04:31:14 -0600

Guanta gravatar image

You can use the function fillPoly which can draw basically any polygon which consists of points, see http://docs.opencv.org/modules/core/doc/drawing_functions.html?highlight=fillpoly#void%20fillPoly%28Mat&%20img,%20const%20Point*%20pts,%20const%20int%20npts,%20int%20ncontours,%20const%20Scalar&%20color,%20int%20lineType,%20int%20shift,%20Point%20offset%29 .

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-19 22:21:53 -0600

Seen: 978 times

Last updated: Mar 20 '13