Ask Your Question
0

How to create a window with gray Background?

asked 2014-04-16 10:04:54 -0500

Adrianos01 gravatar image

Hi there all,

i want to create a gray window. I find the function to create a BLANK Window (in black) with Mat atom_image = Mat::zeros( w, w, CV_8UC3 );

How can i change the color to gray?

p.s. i dont want to use a gray image.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-04-16 10:23:40 -0500

Mat atom_image = Mat::zeros( w, w, CV_8UC3 );
atom_image.setTo(cv::Scalar(127,127,127));
edit flag offensive delete link more

Comments

thank you.

Adrianos01 gravatar imageAdrianos01 ( 2014-04-16 11:15:27 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-04-16 10:04:54 -0500

Seen: 426 times

Last updated: Apr 16 '14