Ask Your Question

Revision history [back]

namedWindow( "test", WINDOW_NORMAL );
setWindowProperty("test",WND_PROP_FULLSCREEN,WINDOW_FULLSCREEN);

i can't test it on Linux but it works pretty well on Windows.

you can test the code below on your system

#include "opencv2/highgui.hpp"

using namespace cv;

int main( int argc, char** argv )
{
  Mat image(200,200,CV_8UC3,Scalar(150,150,150));

  namedWindow( "background window", WINDOW_NORMAL );
  setWindowProperty("background window",WND_PROP_FULLSCREEN,WINDOW_FULLSCREEN);
  imshow( "background window", image ); // you will not see the title

  image.setTo(Scalar(0,0,200));
  imshow( "Second Window", image ); // this is normal window over background window
  waitKey(0);

  return 0;
}