Ask Your Question
0

fill area of cv::Rect with color

asked 2018-04-14 10:59:21 -0600

Kenny Karnama gravatar image

Hi guys, how do i fill area of cv::Rect with color ? thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-04-14 11:03:34 -0600

LBerger gravatar image

updated 2018-04-14 11:04:28 -0600

Read docs?

fill in red :

Mat x(200,200,CV_8UC3,Scalar::all(0));
rectangle(x,Point(10,10), Point(50,60),Vec3b(0,0,200), cv::FILLED);
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-14 10:59:21 -0600

Seen: 4,000 times

Last updated: Apr 14 '18