First time here? Check out the FAQ!

Ask Your Question
0

How to create a window with gray Background?

asked Apr 16 '14

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
3

answered Apr 16 '14

Mat atom_image = Mat::zeros( w, w, CV_8UC3 );
atom_image.setTo(cv::Scalar(127,127,127));
Preview: (hide)

Comments

thank you.

Adrianos01 gravatar imageAdrianos01 (Apr 16 '14)edit

Question Tools

Stats

Asked: Apr 16 '14

Seen: 1,615 times

Last updated: Apr 16 '14